From 7c9f1aad61ef0877ea9a464af7a44d80f00109a8 Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Sat, 24 Aug 2019 03:13:57 +0800 Subject: [PATCH] `test_compact_committees_root` will be moved to phase 1 --- .../test_process_final_updates.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/test_libs/pyspec/eth2spec/test/phase_0/epoch_processing/test_process_final_updates.py b/test_libs/pyspec/eth2spec/test/phase_0/epoch_processing/test_process_final_updates.py index 385cc289b..58882a44f 100644 --- a/test_libs/pyspec/eth2spec/test/phase_0/epoch_processing/test_process_final_updates.py +++ b/test_libs/pyspec/eth2spec/test/phase_0/epoch_processing/test_process_final_updates.py @@ -89,20 +89,3 @@ def test_historical_root_accumulator(spec, state): yield from run_process_final_updates(spec, state) assert len(state.historical_roots) == history_len + 1 - - -@with_all_phases -@spec_state_test -def test_compact_committees_root(spec, state): - assert spec.SLOTS_PER_ETH1_VOTING_PERIOD > spec.SLOTS_PER_EPOCH - # skip ahead to the end of the epoch - state.slot = spec.SLOTS_PER_EPOCH - 1 - - next_epoch = spec.get_current_epoch(state) + 1 - - # ensure that order in which items are processed in final_updates - # does not alter the expected_root - expected_root = spec.get_compact_committees_root(state, next_epoch) - yield from run_process_final_updates(spec, state) - - assert state.compact_committees_roots[next_epoch % spec.EPOCHS_PER_HISTORICAL_VECTOR] == expected_root