mirror of
https://github.com/status-im/nim-codex.git
synced 2025-02-16 12:46:48 +00:00
[tests] Ensure that tests don't hang on closing process
This commit is contained in:
parent
83522e459c
commit
dcf3d485c4
@ -18,5 +18,5 @@ proc startNode*(args: openArray[string], debug = false): Process =
|
|||||||
|
|
||||||
proc stop*(node: Process) =
|
proc stop*(node: Process) =
|
||||||
node.terminate()
|
node.terminate()
|
||||||
discard node.waitForExit()
|
discard node.waitForExit(timeout=5_000)
|
||||||
node.close()
|
node.close()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user