We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2453b8b commit 3fade95Copy full SHA for 3fade95
core/src/test/scala/org/apache/spark/rdd/AsyncRDDActionsSuite.scala
@@ -199,10 +199,9 @@ class AsyncRDDActionsSuite extends SparkFunSuite with BeforeAndAfterAll with Tim
199
val f = sc.parallelize(1 to 100, 4)
200
.mapPartitions(itr => { Thread.sleep(20); itr })
201
.countAsync()
202
- val e = intercept[SparkException] {
+ intercept[TimeoutException] {
203
ThreadUtils.awaitResult(f, Duration(20, "milliseconds"))
204
}
205
- assert(e.getCause.isInstanceOf[TimeoutException])
206
207
208
private def testAsyncAction[R](action: RDD[Int] => FutureAction[R]): Unit = {
0 commit comments