adding filter initialization test

This commit is contained in:
Gabriel mermelstein 2024-03-08 17:23:35 -06:00
parent 14e8e90ab4
commit b36d823d99
No known key found for this signature in database
GPG Key ID: 82B8134785FEAE0D
1 changed files with 11 additions and 0 deletions

View File

@ -19,6 +19,7 @@ suite "Node Factory":
not node.isNil()
node.wakuArchive.isNil()
node.wakuStore.isNil()
node.wakuFilter.isNil()
not node.wakuStoreClient.isNil()
not node.rendezvous.isNil()
@ -33,7 +34,17 @@ suite "Node Factory":
not node.isNil()
not node.wakuStore.isNil()
not node.wakuArchive.isNil()
test "Set up a node with Filter enabled":
var conf = defaultTestWakuNodeConf()
conf.filter = true
let node = setupNode(conf).valueOr:
raiseAssert error
check:
not node.isNil()
not node.wakuFilter.isNil()