Skip to content

Commit 1f7bd88

Browse files
committed
test case imporvement
1 parent 7056cd6 commit 1f7bd88

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

core/src/test/scala/org/apache/spark/scheduler/DAGSchedulerSuite.scala

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2149,7 +2149,12 @@ class DAGSchedulerSuite extends SparkFunSuite with LocalSparkContext with Timeou
21492149
logInfo("expected abort stage2: " + e.getMessage)
21502150
}
21512151
}
2152-
ThreadUtils.awaitResult(f2, duration)
2152+
try {
2153+
ThreadUtils.awaitResult(f2, duration)
2154+
} catch {
2155+
case e: Throwable => fail("The failed stage never resubmitted")
2156+
}
2157+
executorContext.shutdown()
21532158
}
21542159

21552160
/**

0 commit comments

Comments
 (0)