fix flaky test

This commit is contained in:
Mark Spanbroek 2024-03-19 09:53:02 +01:00 committed by markspanbroek
parent 4ad5b6065e
commit 6393546ad6
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ for url in ["ws://localhost:8545", "http://localhost:8545"]:
let hash = TransactionHash.example let hash = TransactionHash.example
let tx = TransactionResponse(provider: provider, hash: hash) let tx = TransactionResponse(provider: provider, hash: hash)
let confirming = tx.confirm(confirmations = 2, timeout = 5) let confirming = tx.confirm(confirmations = 2, timeout = 5)
await sleepAsync(100.millis) # wait for confirm to subscribe to new blocks
await provider.mineBlocks(5) await provider.mineBlocks(5)
expect EthersError: expect EthersError:
discard await confirming discard await confirming