Skip to content

Commit 12f66b5

Browse files
committed
Fix for SparkContext stop behavior
1 parent 72bb484 commit 12f66b5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/src/test/scala/org/apache/spark/SparkContextSuite.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import org.apache.spark.util.Utils
3030

3131
import scala.concurrent.Await
3232
import scala.concurrent.duration.Duration
33-
import scala.util.control.NonFatal
3433

3534
class SparkContextSuite extends SparkFunSuite with LocalSparkContext {
3635

@@ -284,7 +283,7 @@ class SparkContextSuite extends SparkFunSuite with LocalSparkContext {
284283
sc.stop()
285284
} catch {
286285
case e: Exception =>
287-
fail("calling multiple sc.stop() must not have thrown any exception");
286+
fail("calling multiple sc.stop() must not throw any exception", e);
288287
}
289288
}
290289
}

0 commit comments

Comments
 (0)