Skip to content

Commit 3c054bc

Browse files
committed
Cut rpc state test time in half
1 parent 138c73c commit 3c054bc

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

tests/trinity/json-fixtures-over-rpc/test_rpc_fixtures.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
is_string,
1616
)
1717

18+
from eth.chains.base import (
19+
MiningChain,
20+
)
1821
from eth.tools.fixture_tests import (
1922
filter_fixtures,
2023
generate_fixture_tests,
@@ -341,7 +344,16 @@ def chain_fixture(fixture_data):
341344
return fixture
342345

343346

344-
def test_rpc_against_fixtures(ipc_server, chain_fixture, fixture_data):
347+
@pytest.fixture
348+
def chain(chain_without_block_validation):
349+
if isinstance(chain_without_block_validation, MiningChain):
350+
# These tests are long. For RPC state tests, there shouldn't be any
351+
# significant difference between a mining chain and a basic chain.
352+
pytest.skip("Only need to test basic chain")
353+
return
354+
355+
356+
def test_rpc_against_fixtures(chain, ipc_server, chain_fixture, fixture_data):
345357
rpc = RPCServer(None)
346358

347359
setup_result, setup_error = call_rpc(rpc, 'evm_resetToGenesisFixture', [chain_fixture])

0 commit comments

Comments
 (0)