Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion core/src/test/scala/org/apache/spark/rpc/RpcEnvSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,12 @@ abstract class RpcEnvSuite extends SparkFunSuite with BeforeAndAfterAll {

test("port conflict") {
val anotherEnv = createRpcEnv(new SparkConf(), "remote", env.address.port)
assert(anotherEnv.address.port != env.address.port)
try {
assert(anotherEnv.address.port != env.address.port)
} finally {
anotherEnv.shutdown()
anotherEnv.awaitTermination()
}
}

private def testSend(conf: SparkConf): Unit = {
Expand Down