diff --git a/tests/integration/nodeprocess.nim b/tests/integration/nodeprocess.nim index 690a957a..8152ee9f 100644 --- a/tests/integration/nodeprocess.nim +++ b/tests/integration/nodeprocess.nim @@ -130,11 +130,9 @@ method stop*(node: NodeProcess, expectedErrCode: int = -1) {.base, async.} = trace "waiting for node process to exit" let exitCode = await node.process.waitForExit(3.seconds) - if exitCode > 0 and - exitCode != 143 and # 143 = SIGTERM (initiated above) - exitCode != expectedErrCode: + if exitCode > 0 and exitCode != 143 and # 143 = SIGTERM (initiated above) + exitCode != expectedErrCode: error "failed to exit process, check for zombies", exitCode - except CancelledError as error: raise error except CatchableError as e: diff --git a/tests/integration/utils.nim b/tests/integration/utils.nim index ea79f560..6b5e536b 100644 --- a/tests/integration/utils.nim +++ b/tests/integration/utils.nim @@ -1,8 +1,7 @@ import pkg/chronos 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.} = await transp.closeWait() @@ -22,4 +21,4 @@ proc nextFreePort*(startPort: int): Future[int] {.async: (raises:[CancelledError trace "port is not free", port inc port except TransportAddressError: - raiseAssert "bad address" \ No newline at end of file + raiseAssert "bad address"