From d5a40c83479d61cbdb2febc065407d8c7aaf9a70 Mon Sep 17 00:00:00 2001 From: dudong2 Date: Mon, 29 Jul 2024 13:50:01 +0900 Subject: [PATCH] test: Copy test_basic from cronos --- tests/integration_tests/test_fee_history.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/integration_tests/test_fee_history.py b/tests/integration_tests/test_fee_history.py index 7dde9c187a..2de05701a0 100644 --- a/tests/integration_tests/test_fee_history.py +++ b/tests/integration_tests/test_fee_history.py @@ -4,7 +4,11 @@ from web3 import Web3 from .network import setup_ethermint -from .utils import ADDRS, send_transaction +from .utils import ( + ADDRS, + send_transaction, + w3_wait_for_block, +) @pytest.fixture(scope="module") @@ -29,6 +33,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)