From 2d4ff72b2dccd8ec900681b621d4313a48b87099 Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Fri, 2 Jul 2021 08:38:03 -0700 Subject: [PATCH] Update tests/core/pyspec/eth2spec/test/altair/block_processing/test_process_sync_aggregate.py Co-authored-by: Hsiao-Wei Wang --- .../altair/block_processing/test_process_sync_aggregate.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/core/pyspec/eth2spec/test/altair/block_processing/test_process_sync_aggregate.py b/tests/core/pyspec/eth2spec/test/altair/block_processing/test_process_sync_aggregate.py index 55bbafd6f..fe847b741 100644 --- a/tests/core/pyspec/eth2spec/test/altair/block_processing/test_process_sync_aggregate.py +++ b/tests/core/pyspec/eth2spec/test/altair/block_processing/test_process_sync_aggregate.py @@ -417,10 +417,11 @@ def test_proposer_in_committee_without_participation(spec, state): if proposer_is_in_sync_committee: assert state.validators[block.proposer_index].pubkey in state.current_sync_committee.pubkeys yield from run_sync_committee_processing(spec, state, block) - return + break else: state_transition_and_sign_block(spec, state, block) - raise AssertionError("failed to find a proposer in the sync committee set; check test setup") + else: + raise AssertionError("failed to find a proposer in the sync committee set; check test setup") @with_altair_and_later