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:
Mark Spanbroek 2024-11-12 11:03:27 +01:00
parent 388cd5166e
commit 3cfa205f2f
No known key found for this signature in database
GPG Key ID: FBE3E9548D427C00
1 changed files with 4 additions and 1 deletions

View File

@ -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: