Skip to content

Commit

Permalink
test: try improve weird stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Dec 15, 2023
1 parent 8622101 commit 7fb5565
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,12 @@ def networks_connected_to_tester(eth_tester_provider):

@pytest.fixture
def geth_provider(networks):
if not networks.active_provider or networks.provider.name != "geth":
if (
not networks.active_provider
or networks.provider.name != "geth"
or not networks.provider.is_connected
or getattr(networks.provider, "uri", "") != GETH_URI
):
test_acct_100 = "0x63c7f11162dBFC374DC6f5C0B3Aa26C618846a85"
with networks.ethereum.local.use_provider(
"geth", provider_settings={"uri": GETH_URI, "extra_funded_accounts": [test_acct_100]}
Expand Down

0 comments on commit 7fb5565

Please sign in to comment.