diff --git a/tests/conftest.py b/tests/conftest.py index ce0153c359..df20910531 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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]}