mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-05-05 18:09:26 +00:00
fixes
This commit is contained in:
parent
ff7e603153
commit
fb8f530b88
@ -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)
|
||||
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user