Fix rebase

This commit is contained in:
NagyZoltanPeter 2026-01-26 00:27:59 +01:00
parent fc8e9f6726
commit 3642646574
No known key found for this signature in database
GPG Key ID: 3E1F97CF4A7B6F42
5 changed files with 14 additions and 8 deletions

View File

@ -130,7 +130,8 @@ when isMainModule:
info "Setting up shutdown hooks"
proc asyncStopper(waku: Waku) {.async: (raises: [Exception]).} =
await waku.stop()
(await waku.stop()).isOkOr:
error "Waku shutdown failed", error = error
quit(QuitSuccess)
# Handle Ctrl-C SIGINT
@ -160,7 +161,8 @@ when isMainModule:
# Not available in -d:release mode
writeStackTrace()
waitFor waku.stop()
(waitFor waku.stop()).isOkOr:
error "Waku shutdown failed", error = error
quit(QuitFailure)
c_signal(ansi_c.SIGSEGV, handleSigsegv)

View File

@ -62,7 +62,8 @@ when isMainModule:
info "Setting up shutdown hooks"
proc asyncStopper(waku: Waku) {.async: (raises: [Exception]).} =
await waku.stop()
(await waku.stop()).isOkOr:
error "Waku shutdown failed", error = error
quit(QuitSuccess)
# Handle Ctrl-C SIGINT
@ -92,7 +93,8 @@ when isMainModule:
# Not available in -d:release mode
writeStackTrace()
waitFor waku.stop()
(waitFor waku.stop()).isOkOr:
error "Waku shutdown failed", error = error
quit(QuitFailure)
c_signal(ansi_c.SIGSEGV, handleSigsegv)

View File

@ -60,7 +60,8 @@ suite "Wakunode2 - Waku initialization":
not node.wakuRendezvous.isNil()
## Cleanup
waitFor waku.stop()
(waitFor waku.stop()).isOkOr:
raiseAssert error
test "app properly handles dynamic port configuration":
## Given
@ -96,4 +97,5 @@ suite "Wakunode2 - Waku initialization":
typedNodeEnr.get().tcp.get() != 0
## Cleanup
waitFor waku.stop()
(waitFor waku.stop()).isOkOr:
raiseAssert error)

2
vendor/nim-chronos vendored

@ -1 +1 @@
Subproject commit 0646c444fce7c7ed08ef6f2c9a7abfd172ffe655
Subproject commit 85af4db764ecd3573c4704139560df3943216cf1

2
vendor/nim-libp2p vendored

@ -1 +1 @@
Subproject commit 0309685cd27d4bf763c8b3be86a76c33bcfe67ea
Subproject commit eb7e6ff89889e41b57515f891ba82986c54809fb