Close eth node after usage (#1741)
This commit is contained in:
parent
cf9553196e
commit
348a9aea6f
|
@ -152,9 +152,13 @@ proc newEngineEnv*(conf: var NimbusConf, chainFile: string, enableAuth: bool): E
|
|||
client : client,
|
||||
sync : sync
|
||||
)
|
||||
|
||||
proc close(node: EthereumNode) =
|
||||
node.stopListening()
|
||||
waitFor node.listeningServer.closeWait()
|
||||
|
||||
proc close*(env: EngineEnv) =
|
||||
env.node.stopListening()
|
||||
env.node.close()
|
||||
env.sync.stop()
|
||||
waitFor env.client.close()
|
||||
waitFor env.sealer.stop()
|
||||
|
|
|
@ -256,7 +256,7 @@ let wdTestList* = [
|
|||
"- Wait for sync, which include syncing a pre-Withdrawals block, and verify withdrawn account's balance\n",
|
||||
run: specExecute[SyncSpec],
|
||||
spec: SyncSpec(
|
||||
timeoutSeconds: 300,
|
||||
timeoutSeconds: 50,
|
||||
wdForkHeight: 2,
|
||||
wdBlockCount: 128,
|
||||
wdPerBlock: MAINNET_MAX_WITHDRAWAL_COUNT_PER_BLOCK,
|
||||
|
|
Loading…
Reference in New Issue