This commit is contained in:
Gabriel mermelstein 2025-07-08 12:00:30 +03:00
parent ff7e603153
commit fb8f530b88
3 changed files with 3 additions and 6 deletions

View File

@ -122,7 +122,7 @@ when isMainModule:
error "Issue converting toWakuConf", error = $error
quit(QuitFailure)
var waku = (waitfor Waku.new(wakuConf)).valueOr:
var waku = (waitFor Waku.new(wakuConf)).valueOr:
error "Waku initialization failed", error = error
quit(QuitFailure)

View File

@ -91,9 +91,6 @@ proc process*(
defer:
destroyShared(self)
# return execution to the async loop before proceeding
await sleepAsync(0.milliseconds)
case self.operation
of CREATE_NODE:
echo "------------ calling createWaku"

View File

@ -58,7 +58,7 @@ asynctest "Start a node based on default configurations":
assert not node.isNil(), "Node can't be nil"
let startRes = catch:
(waitFor startNode(node, conf))
(await startNode(node, conf))
assert not startRes.isErr(), "Exception starting node"
assert startRes.get().isOk(), "Error starting node " & startRes.get().error
@ -67,4 +67,4 @@ asynctest "Start a node based on default configurations":
node.started == true
## Cleanup
waitFor node.stop()
await node.stop()