File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/pytest_plugins/consume/simulators Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 77
88import pytest
99from hive .client import Client , ClientType
10- from hive .testing import HiveTestSuite
10+ from hive .testing import HiveTest , HiveTestSuite
1111
1212from ethereum_test_base_types import to_json
1313from ethereum_test_fixtures import BlockchainEngineXFixture
@@ -115,6 +115,7 @@ def genesis_header(pre_alloc_group: PreAllocGroup) -> FixtureHeader:
115115@pytest .fixture (scope = "function" )
116116def client (
117117 test_suite : HiveTestSuite ,
118+ hive_test : HiveTest ,
118119 client_type : ClientType ,
119120 total_timing_data : TimingData ,
120121 fixture : BlockchainEngineXFixture ,
@@ -146,6 +147,7 @@ def client(
146147 existing_client = multi_test_client_manager .get_client_for_test (group_identifier , test_id )
147148 if existing_client is not None :
148149 logger .info (f"Reusing multi-test client for group { group_identifier } " )
150+ hive_test .register_shared_client (existing_client )
149151 try :
150152 yield existing_client
151153 finally :
@@ -173,6 +175,7 @@ def client(
173175 client_type = client_type ,
174176 )
175177 multi_test_client .set_client (hive_client )
178+ hive_test .register_shared_client (hive_client )
176179
177180 logger .info (f"Multi-test client ready for group { group_identifier } " )
178181 try :
You can’t perform that action at this time.
0 commit comments