@@ -37,7 +37,7 @@ import org.scalatest.funsuite.FixtureAnyFunSuiteLike
37
37
import org .scalatest .{Outcome , ParallelTestExecution , Tag }
38
38
import scodec .bits .ByteVector
39
39
40
- import java .net .{InetAddress , ServerSocket , Socket }
40
+ import java .net .{ServerSocket , Socket }
41
41
import java .util .concurrent .Executors
42
42
import scala .concurrent .duration ._
43
43
import scala .concurrent .{ExecutionContext , Future }
@@ -113,7 +113,7 @@ class PeerSpec extends TestKitBaseClass with FixtureAnyFunSuiteLike with Paralle
113
113
system.actorOf(ClientSpawner .props(nodeParams.keyPair, nodeParams.socksProxy_opt, nodeParams.peerConnectionConf, TestProbe ().ref, TestProbe ().ref))
114
114
115
115
// we create a dummy tcp server and update bob's announcement to point to it
116
- val mockServer = new ServerSocket (0 , 1 , InetAddress .getLocalHost ) // port will be assigned automatically
116
+ val mockServer = new ServerSocket (0 , 1 ) // port will be assigned automatically
117
117
val mockAddress = HostAndPort .fromParts(mockServer.getInetAddress.getHostAddress, mockServer.getLocalPort)
118
118
119
119
val probe = TestProbe ()
@@ -139,7 +139,7 @@ class PeerSpec extends TestKitBaseClass with FixtureAnyFunSuiteLike with Paralle
139
139
system.actorOf(ClientSpawner .props(nodeParams.keyPair, nodeParams.socksProxy_opt, nodeParams.peerConnectionConf, TestProbe ().ref, TestProbe ().ref))
140
140
141
141
// we create a dummy tcp server and update bob's announcement to point to it
142
- val mockServer = new ServerSocket (0 , 1 , InetAddress .getLocalHost ) // port will be assigned automatically
142
+ val mockServer = new ServerSocket (0 , 1 ) // port will be assigned automatically
143
143
val mockAddress = NodeAddress .fromParts(mockServer.getInetAddress.getHostAddress, mockServer.getLocalPort).get
144
144
145
145
// we put the server address in the node db
0 commit comments