use 100 millisecond polling for multinodes tests
default polling interval of 4 seconds is too close to the 5 second timeout for `check eventually`. uses the same polling interval as ethersuite does
This commit is contained in:
parent
388cd5166e
commit
3cfa205f2f
|
@ -267,7 +267,10 @@ template multinodesuite*(name: string, body: untyped) =
|
|||
# Workaround for https://github.com/NomicFoundation/hardhat/issues/2053
|
||||
# Do not use websockets, but use http and polling to stop subscriptions
|
||||
# from being removed after 5 minutes
|
||||
ethProvider = JsonRpcProvider.new("http://localhost:8545")
|
||||
ethProvider = JsonRpcProvider.new(
|
||||
"http://localhost:8545",
|
||||
pollingInterval = chronos.milliseconds(100)
|
||||
)
|
||||
# if hardhat was NOT started by the test, take a snapshot so it can be
|
||||
# reverted in the test teardown
|
||||
if nodeConfigs.hardhat.isNone:
|
||||
|
|
Loading…
Reference in New Issue