mirror of
https://github.com/status-im/nim-ethers.git
synced 2025-02-25 21:45:19 +00:00
fix flaky test
This commit is contained in:
parent
4ad5b6065e
commit
6393546ad6
@ -80,6 +80,7 @@ for url in ["ws://localhost:8545", "http://localhost:8545"]:
|
||||
let hash = TransactionHash.example
|
||||
let tx = TransactionResponse(provider: provider, hash: hash)
|
||||
let confirming = tx.confirm(confirmations = 2, timeout = 5)
|
||||
await sleepAsync(100.millis) # wait for confirm to subscribe to new blocks
|
||||
await provider.mineBlocks(5)
|
||||
expect EthersError:
|
||||
discard await confirming
|
||||
|
Loading…
x
Reference in New Issue
Block a user