@@ -31,10 +31,10 @@ procSuite "Waku v2 JSON-RPC API - Admin":
31
31
asyncTest " connect to ad-hoc peers" :
32
32
# Create a couple of nodes
33
33
let
34
- node1 = newTestWakuNode (generateSecp256k1Key (), ValidIpAddress .init (" 0 .0.0.0 " ), Port (60600 ))
35
- node2 = newTestWakuNode (generateSecp256k1Key (), ValidIpAddress .init (" 0 .0.0.0 " ), Port (60602 ))
34
+ node1 = newTestWakuNode (generateSecp256k1Key (), ValidIpAddress .init (" 127 .0.0.1 " ), Port (60600 ))
35
+ node2 = newTestWakuNode (generateSecp256k1Key (), ValidIpAddress .init (" 127 .0.0.1 " ), Port (60602 ))
36
36
peerInfo2 = node2.switch.peerInfo
37
- node3 = newTestWakuNode (generateSecp256k1Key (), ValidIpAddress .init (" 0 .0.0.0 " ), Port (60604 ))
37
+ node3 = newTestWakuNode (generateSecp256k1Key (), ValidIpAddress .init (" 127 .0.0.1 " ), Port (60604 ))
38
38
peerInfo3 = node3.switch.peerInfo
39
39
40
40
await allFutures ([node1.start (), node2.start (), node3.start ()])
@@ -90,7 +90,7 @@ procSuite "Waku v2 JSON-RPC API - Admin":
90
90
91
91
asyncTest " get managed peer information" :
92
92
# Create 3 nodes and start them with relay
93
- let nodes = toSeq (0 ..< 3 ).mapIt (newTestWakuNode (generateSecp256k1Key (), ValidIpAddress .init (" 0 .0.0.0 " ), Port (60220 + it* 2 )))
93
+ let nodes = toSeq (0 ..< 3 ).mapIt (newTestWakuNode (generateSecp256k1Key (), ValidIpAddress .init (" 127 .0.0.1 " ), Port (60220 + it* 2 )))
94
94
await allFutures (nodes.mapIt (it.start ()))
95
95
await allFutures (nodes.mapIt (it.mountRelay ()))
96
96
0 commit comments