mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-03 14:33:12 +00:00
test: remove websockets
Not really useful for tests, and create issues with port allocation.
This commit is contained in:
parent
d69ad58a7f
commit
270899ea9e
@ -48,8 +48,9 @@ asynctest "Set up a node with Filter enabled":
|
||||
check:
|
||||
not node.isNil()
|
||||
not node.wakuFilter.isNil()
|
||||
echo "TEST END"
|
||||
|
||||
asynctest "Start a node based on default configurations":
|
||||
asynctest "Start a node based on default test configuration":
|
||||
let conf = defaultTestWakuConf()
|
||||
|
||||
let node = (await setupNode(conf, relay = Relay.new())).valueOr:
|
||||
|
||||
@ -42,8 +42,6 @@ proc defaultTestWakuConfBuilder*(): WakuConfBuilder =
|
||||
builder.withRendezvous(true)
|
||||
builder.storeServiceConf.withDbMigration(false)
|
||||
builder.storeServiceConf.withSupportV2(false)
|
||||
builder.webSocketConf.withWebSocketPort(Port(8000))
|
||||
builder.webSocketConf.withEnabled(true)
|
||||
return builder
|
||||
|
||||
proc defaultTestWakuConf*(): WakuConf =
|
||||
|
||||
@ -439,7 +439,6 @@ suite "Waku Discovery v5":
|
||||
confBuilder.discv5Conf.withEnabled(true)
|
||||
confBuilder.discv5Conf.withUdpPort(9001.Port)
|
||||
confBuilder.withP2pTcpPort(60001.Port)
|
||||
confBuilder.websocketConf.withEnabled(false)
|
||||
|
||||
let conf1 = confBuilder.build().valueOr:
|
||||
raiseAssert error
|
||||
@ -456,7 +455,6 @@ suite "Waku Discovery v5":
|
||||
confBuilder.withP2pTcpPort(60003.Port)
|
||||
confBuilder.discv5Conf.withUdpPort(9003.Port)
|
||||
confBuilder.withNodeKey(crypto.PrivateKey.random(Secp256k1, myRng[])[])
|
||||
confBuilder.websocketConf.withEnabled(false)
|
||||
|
||||
let conf2 = confBuilder.build().valueOr:
|
||||
raiseAssert error
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user