Skip to content

Commit 6393546

Browse files
committed
fix flaky test
1 parent 4ad5b60 commit 6393546

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

testmodule/providers/jsonrpc/testJsonRpcProvider.nim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ for url in ["ws://localhost:8545", "http://localhost:8545"]:
8080
let hash = TransactionHash.example
8181
let tx = TransactionResponse(provider: provider, hash: hash)
8282
let confirming = tx.confirm(confirmations = 2, timeout = 5)
83+
await sleepAsync(100.millis) # wait for confirm to subscribe to new blocks
8384
await provider.mineBlocks(5)
8485
expect EthersError:
8586
discard await confirming

0 commit comments

Comments
 (0)