mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-23 15:53:12 +00:00
nil check hardhat process before stopping
This commit is contained in:
parent
b73c91b129
commit
d3b5d3b1e6
@ -572,6 +572,7 @@ proc stop*(manager: TestManager) {.async: (raises: [CancelledError]).} =
|
||||
|
||||
for hardhat in manager.hardhats:
|
||||
try:
|
||||
await hardhat.process.stop()
|
||||
if not hardhat.process.isNil:
|
||||
await hardhat.process.stop()
|
||||
except CatchableError as e:
|
||||
trace "failed to stop hardhat node", error = e.msg
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user