mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-03 06:23:10 +00:00
* 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
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")
|