diff --git a/tests/test_peer_manager.nim b/tests/test_peer_manager.nim index 4d4db24304..bcc3821cab 100644 --- a/tests/test_peer_manager.nim +++ b/tests/test_peer_manager.nim @@ -269,14 +269,9 @@ procSuite "Peer Manager": database = SqliteDatabase.new(":memory:")[] storage = WakuPeerStorage.new(database)[] node1 = newTestWakuNode( - generateSecp256k1Key(), - ValidIpAddress.init($getPrimaryIPAddr()), - Port(44048), - peerStorage = storage, - ) - node2 = newTestWakuNode( - generateSecp256k1Key(), ValidIpAddress.init($getPrimaryIPAddr()), Port(34023) + generateSecp256k1Key(), getPrimaryIPAddr(), Port(44048), peerStorage = storage ) + node2 = newTestWakuNode(generateSecp256k1Key(), getPrimaryIPAddr(), Port(34023)) node1.mountMetadata(0).expect("Mounted Waku Metadata") node2.mountMetadata(0).expect("Mounted Waku Metadata") @@ -344,14 +339,9 @@ procSuite "Peer Manager": database = SqliteDatabase.new(":memory:")[] storage = WakuPeerStorage.new(database)[] node1 = newTestWakuNode( - generateSecp256k1Key(), - ValidIpAddress.init($getPrimaryIPAddr()), - Port(44048), - peerStorage = storage, - ) - node2 = newTestWakuNode( - generateSecp256k1Key(), ValidIpAddress.init($getPrimaryIPAddr()), Port(34023) + generateSecp256k1Key(), getPrimaryIPAddr(), Port(44048), peerStorage = storage ) + node2 = newTestWakuNode(generateSecp256k1Key(), getPrimaryIPAddr(), Port(34023)) node1.mountMetadata(0).expect("Mounted Waku Metadata") node2.mountMetadata(0).expect("Mounted Waku Metadata") diff --git a/tests/test_wakunode.nim b/tests/test_wakunode.nim index caee743b6e..dbb2d5d8db 100644 --- a/tests/test_wakunode.nim +++ b/tests/test_wakunode.nim @@ -169,7 +169,7 @@ suite "WakuNode": nodeKey = generateSecp256k1Key() bindIp = parseIpAddress("0.0.0.0") bindPort = Port(61006) - extIp = some(parseIpAddress($getPrimaryIPAddr())) + extIp = some(getPrimaryIPAddr()) extPort = some(Port(61008)) node = newTestWakuNode(nodeKey, bindIp, bindPort, extIp, extPort) @@ -205,7 +205,7 @@ suite "WakuNode": nodeKey = generateSecp256k1Key() bindIp = parseIpAddress("0.0.0.0") bindPort = Port(61010) - extIp = some(parseIpAddress($getPrimaryIPAddr())) + extIp = some(getPrimaryIPAddr()) extPort = some(Port(61012)) domainName = "example.com" expectedDns4Addr =