From 6b37048a1406509d4b1f297ab342b4e0d000f1df Mon Sep 17 00:00:00 2001 From: Andras Slemmer Date: Mon, 5 Sep 2016 15:43:19 +0100 Subject: [PATCH] node-driver: Remove reuseAddress = true as it breaks tests on osx --- node/src/main/kotlin/com/r3corda/node/driver/Driver.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/node/src/main/kotlin/com/r3corda/node/driver/Driver.kt b/node/src/main/kotlin/com/r3corda/node/driver/Driver.kt index 0a591da1e3..f6c0f061b8 100644 --- a/node/src/main/kotlin/com/r3corda/node/driver/Driver.kt +++ b/node/src/main/kotlin/com/r3corda/node/driver/Driver.kt @@ -94,7 +94,6 @@ sealed class PortAllocation { class RandomFree(): PortAllocation() { override fun nextPort(): Int { return ServerSocket().use { - it.reuseAddress = true it.bind(InetSocketAddress("localhost", 0)) it.localPort } @@ -183,7 +182,6 @@ fun addressMustBeBound(hostAndPort: HostAndPort) { poll("address $hostAndPort to bind") { try { ServerSocket().use { - it.reuseAddress = true it.bind(InetSocketAddress(hostAndPort.hostText, hostAndPort.port)) } null @@ -197,7 +195,6 @@ fun addressMustNotBeBound(hostAndPort: HostAndPort) { poll("address $hostAndPort to unbind") { try { ServerSocket().use { - it.reuseAddress = true it.bind(InetSocketAddress(hostAndPort.hostText, hostAndPort.port)) } Unit