Skip to content

Commit 682a52f

Browse files
committed
Let the test stop gracefully and don't throw exception.
1 parent 5aa0f21 commit 682a52f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

streaming/src/test/scala/org/apache/spark/streaming/StreamingContextSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ package object testPackage extends Assertions {
434434
assert(rddGenerated && foreachCallSiteCorrect, "Call site in foreachRDD was not correct")
435435
}
436436
} finally {
437-
ssc.stop()
437+
ssc.stop(stopSparkContext = false, stopGracefully = true)
438438
}
439439
}
440440
}

0 commit comments

Comments
 (0)