From f9c52ccc632d998733e341f6c609d1ac8237217e Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Wed, 22 Jan 2025 16:06:43 +1100 Subject: [PATCH] fix rebase --- tests/integration/hardhatprocess.nim | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/integration/hardhatprocess.nim b/tests/integration/hardhatprocess.nim index 6472ec56..7528570b 100644 --- a/tests/integration/hardhatprocess.nim +++ b/tests/integration/hardhatprocess.nim @@ -22,9 +22,6 @@ export nodeprocess logScope: topics = "integration testing hardhat process" -type HardhatProcess* = ref object of NodeProcess - logFile: ?IoHandle - type OnOutputLineCaptured = proc(line: string) {.gcsafe, raises: [].} HardhatProcess* = ref object of NodeProcess @@ -111,6 +108,7 @@ proc startNode*( args: seq[string], debug: string | bool = false, name: string, + onOutputLineCaptured: OnOutputLineCaptured = nil, ): Future[HardhatProcess] {.async.} = logScope: nodeName = name @@ -132,6 +130,7 @@ proc startNode*( debug: ($debug != "false"), trackedFutures: TrackedFutures.new(), name: name, + onOutputLine: onOutputLineCaptured, ) await hardhat.start() @@ -141,7 +140,7 @@ proc startNode*( return hardhat -method onOutputLineCaptured(node: HardhatProcess, line: string) = +method onOutputLineCaptured(node: HardhatProcess, line: string) {.raises: [].} = logScope: nodeName = node.name