From cdf1914e981246b9a438454a0e91f25a2865f7a4 Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Thu, 19 Aug 2021 11:00:14 -0600 Subject: [PATCH] Extend randomized block tests to all phases Some existing randomized block tests only ran for phase 0, when they should run for all phases to increase overall test coverage. --- .../pyspec/eth2spec/test/phase0/sanity/test_blocks.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/core/pyspec/eth2spec/test/phase0/sanity/test_blocks.py b/tests/core/pyspec/eth2spec/test/phase0/sanity/test_blocks.py index 33e9854b2..a79ed94d2 100644 --- a/tests/core/pyspec/eth2spec/test/phase0/sanity/test_blocks.py +++ b/tests/core/pyspec/eth2spec/test/phase0/sanity/test_blocks.py @@ -1051,25 +1051,25 @@ def test_eth1_data_votes_no_consensus(spec, state): yield 'post', state -@with_phases([PHASE0]) +@with_all_phases @spec_state_test def test_full_random_operations_0(spec, state): yield from run_test_full_random_operations(spec, state, rng=Random(2020)) -@with_phases([PHASE0]) +@with_all_phases @spec_state_test def test_full_random_operations_1(spec, state): yield from run_test_full_random_operations(spec, state, rng=Random(2021)) -@with_phases([PHASE0]) +@with_all_phases @spec_state_test def test_full_random_operations_2(spec, state): yield from run_test_full_random_operations(spec, state, rng=Random(2022)) -@with_phases([PHASE0]) +@with_all_phases @spec_state_test def test_full_random_operations_3(spec, state): yield from run_test_full_random_operations(spec, state, rng=Random(2023))