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 3218505 commit 2e5f9a8Copy full SHA for 2e5f9a8
core/src/test/scala/org/apache/spark/rpc/RpcEnvSuite.scala
@@ -633,7 +633,12 @@ abstract class RpcEnvSuite extends SparkFunSuite with BeforeAndAfterAll {
633
634
test("port conflict") {
635
val anotherEnv = createRpcEnv(new SparkConf(), "remote", env.address.port)
636
- assert(anotherEnv.address.port != env.address.port)
+ try {
637
+ assert(anotherEnv.address.port != env.address.port)
638
+ } finally {
639
+ anotherEnv.shutdown()
640
+ anotherEnv.awaitTermination()
641
+ }
642
}
643
644
private def testSend(conf: SparkConf): Unit = {
0 commit comments