diff --git a/tests/v2/test_rln_group_manager_onchain.nim b/tests/v2/test_rln_group_manager_onchain.nim index bbc6497082..8fdf357d45 100644 --- a/tests/v2/test_rln_group_manager_onchain.nim +++ b/tests/v2/test_rln_group_manager_onchain.nim @@ -121,7 +121,7 @@ proc runGanache(): Process = # --wallet.defaultBalance The default account balance, specified in ether. # See ganache documentation https://www.npmjs.com/package/ganache for more details try: - let runGanache = startProcess("npx", args = ["--yes", "ganache", "--port", "8540", "--miner.blockGasLimit", "300000000000000", "--wallet.defaultBalance", "10000"], options = {poUsePath, poParentStreams}) + let runGanache = startProcess("npx", args = ["--yes", "ganache", "--port", "8540", "--miner.blockGasLimit", "300000000000000", "--wallet.defaultBalance", "10000"], options = {poUsePath}) let ganachePID = runGanache.processID # We read stdout from Ganache to see when daemon is ready @@ -149,6 +149,9 @@ proc stopGanache(runGanache: Process) {.used.} = try: # We terminate Ganache daemon by sending a SIGTERM signal to the runGanache PID to trigger RPC server termination and clean-up terminate(runGanache) + # NOTE: the below line must remain commented out, otherwise it will cause a deadlocked state + # ref: https://nim-lang.org/docs/osproc.html#waitForExit%2CProcess%2Cint + # debug "ganache logs", logs=runGanache.outputstream.readAll() debug "Sent SIGTERM to Ganache", ganachePID=ganachePID except: error "Ganache daemon termination failed: ", err = getCurrentExceptionMsg()