From 7fb5565fa0cf6aeaf70a2f24a3db9628e5484120 Mon Sep 17 00:00:00 2001 From: Juliya Smith Date: Thu, 14 Dec 2023 18:20:53 -0600 Subject: [PATCH] test: try improve weird stuff --- tests/conftest.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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]}