diff --git a/tests/integration/hardhatprocess.nim b/tests/integration/hardhatprocess.nim index c789a55e..0c7ffc08 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 @@ -92,6 +89,7 @@ proc startNode*( args: seq[string], debug: string | bool = false, name: string, + onOutputLineCaptured: OnOutputLineCaptured = nil, ): Future[HardhatProcess] {.async.} = logScope: nodeName = name @@ -113,6 +111,7 @@ proc startNode*( debug: ($debug != "false"), trackedFutures: TrackedFutures.new(), name: name, + onOutputLine: onOutputLineCaptured, ) await hardhat.start() @@ -122,7 +121,7 @@ proc startNode*( return hardhat -method onOutputLineCaptured(node: HardhatProcess, line: string) = +method onOutputLineCaptured(node: HardhatProcess, line: string) {.raises: [].} = logScope: nodeName = node.name