From 2aa5bf8384228b7d448e3e2c8e2e0b2ad63e318d Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Thu, 1 Jul 2021 16:35:03 -0700 Subject: [PATCH] assert active validator set is larger than sync committee size ensure set is larger, rather than just equal to --- .../test/altair/block_processing/test_process_sync_aggregate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 fa7f89fdc..1dbe435b9 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 @@ -170,7 +170,7 @@ def test_sync_committee_rewards_nonduplicate_committee(spec, state): active_validator_count = len(spec.get_active_validator_indices(state, spec.get_current_epoch(state))) # Preconditions of this test case - assert active_validator_count >= spec.SYNC_COMMITTEE_SIZE + assert active_validator_count > spec.SYNC_COMMITTEE_SIZE assert committee_size == len(set(committee_indices)) yield from run_successful_sync_committee_test(spec, state, committee_indices, committee_bits)