From 6393546ad6b49a15159c85208a1d256b97ac80e3 Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Tue, 19 Mar 2024 09:53:02 +0100 Subject: [PATCH] fix flaky test --- testmodule/providers/jsonrpc/testJsonRpcProvider.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/testmodule/providers/jsonrpc/testJsonRpcProvider.nim b/testmodule/providers/jsonrpc/testJsonRpcProvider.nim index 1125732..10d78b1 100644 --- a/testmodule/providers/jsonrpc/testJsonRpcProvider.nim +++ b/testmodule/providers/jsonrpc/testJsonRpcProvider.nim @@ -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