From 6f9a5a9d88616a3aea3e0e81d8e1c2a0639a5b02 Mon Sep 17 00:00:00 2001 From: yihuang Date: Wed, 20 Mar 2024 16:24:57 +0800 Subject: [PATCH] fix test --- tests/integration_tests/test_fee_history.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/integration_tests/test_fee_history.py b/tests/integration_tests/test_fee_history.py index b994bf2f4a..b6de462c31 100644 --- a/tests/integration_tests/test_fee_history.py +++ b/tests/integration_tests/test_fee_history.py @@ -13,6 +13,7 @@ eth_to_bech32, send_transaction, w3_wait_for_new_blocks, + w3_wait_for_block, ) NEW_BASE_FEE = 100000000000 @@ -42,6 +43,8 @@ def cluster(request, custom_ethermint, geth): def test_basic(cluster): w3: Web3 = cluster.w3 + # need at least 5 blocks + w3_wait_for_block(w3, 5) call = w3.provider.make_request tx = {"to": ADDRS["community"], "value": 10, "gasPrice": w3.eth.gas_price} send_transaction(w3, tx)