mirror of
https://github.com/logos-messaging/logos-messaging-go-bindings.git
synced 2026-05-18 15:49:59 +00:00
git-subtree-dir: third-party/nwaku git-subtree-split: d94cb7c73631ffd4b934839ba58bc622d331a135
20 lines
524 B
Nim
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")
|