Skip to content

Commit e0f906f

Browse files
authored
Increase timeout in IPC and Websocket Providers for Geth integration tests. (#2245)
Addresses test flakiness
1 parent a30a944 commit e0f906f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/integration/go_ethereum/test_goethereum_ipc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def geth_ipc_path(datadir):
5454
@pytest.fixture(scope="module")
5555
def web3(geth_process, geth_ipc_path):
5656
wait_for_socket(geth_ipc_path)
57-
_web3 = Web3(Web3.IPCProvider(geth_ipc_path))
57+
_web3 = Web3(Web3.IPCProvider(geth_ipc_path, timeout=20))
5858
return _web3
5959

6060

tests/integration/go_ethereum/test_goethereum_ws.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def geth_command_arguments(geth_binary,
6565
@pytest.fixture(scope="module")
6666
def web3(geth_process, endpoint_uri, event_loop):
6767
event_loop.run_until_complete(wait_for_ws(endpoint_uri, event_loop))
68-
_web3 = Web3(Web3.WebsocketProvider(endpoint_uri))
68+
_web3 = Web3(Web3.WebsocketProvider(endpoint_uri, websocket_timeout=20))
6969
return _web3
7070

7171

0 commit comments

Comments
 (0)