From 69f7b95629ccb864032010fb88797c8c7888bcae Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Wed, 29 Jan 2025 15:55:17 +1100 Subject: [PATCH] nil check hardhat process before stopping --- tests/integration/testmanager.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration/testmanager.nim b/tests/integration/testmanager.nim index bf02e81c..e0f07f1b 100644 --- a/tests/integration/testmanager.nim +++ b/tests/integration/testmanager.nim @@ -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