From 1ade07d705d3dd2ad8168923f96d1188d5bcd996 Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Wed, 9 Jun 2021 16:31:20 -0600 Subject: [PATCH] fix mismatched proposer test names --- .../test_process_proposer_slashing.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/core/pyspec/eth2spec/test/phase0/block_processing/test_process_proposer_slashing.py b/tests/core/pyspec/eth2spec/test/phase0/block_processing/test_process_proposer_slashing.py index b9becc1fd..48bc5ba3d 100644 --- a/tests/core/pyspec/eth2spec/test/phase0/block_processing/test_process_proposer_slashing.py +++ b/tests/core/pyspec/eth2spec/test/phase0/block_processing/test_process_proposer_slashing.py @@ -35,6 +35,14 @@ def run_proposer_slashing_processing(spec, state, proposer_slashing, valid=True) @with_all_phases @spec_state_test def test_success(spec, state): + proposer_slashing = get_valid_proposer_slashing(spec, state, signed_1=True, signed_2=True) + + yield from run_proposer_slashing_processing(spec, state, proposer_slashing) + + +@with_all_phases +@spec_state_test +def test_success_slashed_and_proposer_index_the_same(spec, state): # Get proposer for next slot block = build_empty_block_for_next_slot(spec, state) proposer_index = block.proposer_index @@ -47,14 +55,6 @@ def test_success(spec, state): yield from run_proposer_slashing_processing(spec, state, proposer_slashing) -@with_all_phases -@spec_state_test -def test_success_slashed_and_proposer_index_the_same(spec, state): - proposer_slashing = get_valid_proposer_slashing(spec, state, signed_1=True, signed_2=True) - - yield from run_proposer_slashing_processing(spec, state, proposer_slashing) - - @with_all_phases @spec_state_test @always_bls