Skip to content

Commit c89c1fc

Browse files
committed
Add flaky decorator to geth estimate_gas
1 parent cde7a06 commit c89c1fc

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

tests/integration/go_ethereum/test_goethereum_http.py

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
import pytest
22

33
import pytest_asyncio
4+
from flaky import (
5+
flaky,
6+
)
47

8+
from eth_typing import (
9+
ChecksumAddress,
10+
)
511
from tests.utils import (
612
get_open_port,
713
)
14+
from typing import (
15+
TYPE_CHECKING,
16+
)
817
from web3 import Web3
918
from web3._utils.module_testing.go_ethereum_admin_module import (
1019
GoEthereumAsyncAdminModuleTest,
@@ -51,6 +60,10 @@
5160
)
5261

5362

63+
if TYPE_CHECKING:
64+
from web3 import Web3 # noqa: F401
65+
66+
5467
@pytest.fixture(scope="module")
5568
def rpc_port():
5669
return get_open_port()
@@ -158,8 +171,11 @@ async def test_admin_start_stop_ws(self, w3: "Web3") -> None:
158171

159172

160173
class TestGoEthereumEthModuleTest(GoEthereumEthModuleTest):
161-
pass
162-
174+
@flaky(max_runs=3)
175+
def test_eth_estimate_gas(
176+
self, w3: "Web3", unlocked_account_dual_type: ChecksumAddress
177+
) -> None:
178+
pass
163179

164180
class TestGoEthereumVersionModuleTest(GoEthereumVersionModuleTest):
165181
pass

0 commit comments

Comments
 (0)