mirror of
https://github.com/corda/corda.git
synced 2025-02-21 01:42:24 +00:00
Merged in aslemmer-remove-reuse-addr (pull request #324)
node-driver: Remove reuseAddress = true as it breaks tests on osx
This commit is contained in:
commit
da34be752a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user