logos-messaging-nim/tests/waku_core/test_published_address.nim
Ivan FB 9f68c83fed chore: bump dependencies for v0.36 (#3410)
* properly pass userMessageLimit to OnchainGroupManager
* waku.nimble 2.2.4 Nim compiler
* rm stew/shims/net import
* change ValidIpAddress.init with parseIpAddress
* fix serialize for zerokit
* group_manager: separate if statements
* protocol_types: add encode UInt32 with zeros up to 32 bytes
* windows build: skip libunwind build and rm libunwind.a inlcusion step
* bump nph to overcome the compilation issues with 2.2.x
* bump nim-libp2p to v1.10.1
2025-05-26 21:58:02 +02:00

20 lines
524 B
Nim

{.used.}
import std/[strutils, net], testutils/unittests
import ../testlib/wakucore, ../testlib/wakunode
suite "Waku Core - Published Address":
test "Test IP 0.0.0.0":
let node =
newTestWakuNode(generateSecp256k1Key(), parseIpAddress("0.0.0.0"), Port(0))
check:
($node.announcedAddresses).contains("127.0.0.1")
test "Test custom IP":
let node =
newTestWakuNode(generateSecp256k1Key(), parseIpAddress("8.8.8.8"), Port(0))
check:
($node.announcedAddresses).contains("8.8.8.8")