mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-02-03 16:44:05 +00:00
formatting
This commit is contained in:
parent
57dc968486
commit
39e5d507e0
@ -130,11 +130,9 @@ method stop*(node: NodeProcess, expectedErrCode: int = -1) {.base, async.} =
|
|||||||
trace "waiting for node process to exit"
|
trace "waiting for node process to exit"
|
||||||
let exitCode = await node.process.waitForExit(3.seconds)
|
let exitCode = await node.process.waitForExit(3.seconds)
|
||||||
|
|
||||||
if exitCode > 0 and
|
if exitCode > 0 and exitCode != 143 and # 143 = SIGTERM (initiated above)
|
||||||
exitCode != 143 and # 143 = SIGTERM (initiated above)
|
|
||||||
exitCode != expectedErrCode:
|
exitCode != expectedErrCode:
|
||||||
error "failed to exit process, check for zombies", exitCode
|
error "failed to exit process, check for zombies", exitCode
|
||||||
|
|
||||||
except CancelledError as error:
|
except CancelledError as error:
|
||||||
raise error
|
raise error
|
||||||
except CatchableError as e:
|
except CatchableError as e:
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
import pkg/chronos
|
import pkg/chronos
|
||||||
import pkg/codex/logutils
|
import pkg/codex/logutils
|
||||||
|
|
||||||
proc nextFreePort*(startPort: int): Future[int] {.async: (raises:[CancelledError]).} =
|
proc nextFreePort*(startPort: int): Future[int] {.async: (raises: [CancelledError]).} =
|
||||||
|
|
||||||
proc client(server: StreamServer, transp: StreamTransport) {.async.} =
|
proc client(server: StreamServer, transp: StreamTransport) {.async.} =
|
||||||
await transp.closeWait()
|
await transp.closeWait()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user