From e95d71f85d6675d49859db831ce45e66c5ddb984 Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Fri, 2 Jul 2021 09:25:08 -0600 Subject: [PATCH] pr feedback --- .../test_process_sync_committee_updates.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/core/pyspec/eth2spec/test/altair/epoch_processing/test_process_sync_committee_updates.py b/tests/core/pyspec/eth2spec/test/altair/epoch_processing/test_process_sync_committee_updates.py index cbfa631cd..1667a12b2 100644 --- a/tests/core/pyspec/eth2spec/test/altair/epoch_processing/test_process_sync_committee_updates.py +++ b/tests/core/pyspec/eth2spec/test/altair/epoch_processing/test_process_sync_committee_updates.py @@ -21,8 +21,8 @@ from eth2spec.test.helpers.epoch_processing import ( # def run_sync_committees_progress_test(spec, state): - first_sync_committee = state.current_sync_committee - second_sync_committee = state.next_sync_committee + first_sync_committee = state.current_sync_committee.copy() + second_sync_committee = state.next_sync_committee.copy() current_period = spec.get_current_epoch(state) // spec.EPOCHS_PER_SYNC_COMMITTEE_PERIOD next_period = current_period + 1 @@ -115,8 +115,8 @@ def test_sync_committees_no_progress_not_boundary(spec, state): slot_not_at_period_boundary = state.slot + spec.SLOTS_PER_EPOCH transition_to(spec, state, slot_not_at_period_boundary) - first_sync_committee = state.current_sync_committee - second_sync_committee = state.next_sync_committee + first_sync_committee = state.current_sync_committee.copy() + second_sync_committee = state.next_sync_committee.copy() yield from run_epoch_processing_with(spec, state, 'process_sync_committee_updates')