-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add randomized testing for Altair process_sync_aggregate
#2507
Add randomized testing for Altair process_sync_aggregate
#2507
Conversation
@@ -206,7 +210,6 @@ def test_sync_committee_rewards_duplicate_committee_no_participation(spec, state | |||
committee_indices = get_committee_indices(spec, state, duplicates=True) | |||
committee_size = len(committee_indices) | |||
committee_bits = [False] * committee_size | |||
assert len(committee_bits) == committee_size |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this likely got copied from another test where it was more important to check the committee size; however, there is no manipulation of this set here so we just remove the assert
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great! minor formatting, otherwise good to go
Adds some randomized testing for sync aggregate processing.
The following test cases are added for both committees with duplicated indices and committees without duplicated indices.
NOTE: the cases of 0% participation and 100% participation are already covered by existing tests (however, they all use the same rng seed)