diff --git a/test_libs/pyspec/eth2spec/test/sanity/test_blocks.py b/test_libs/pyspec/eth2spec/test/sanity/test_blocks.py index e56baee8c..019563978 100644 --- a/test_libs/pyspec/eth2spec/test/sanity/test_blocks.py +++ b/test_libs/pyspec/eth2spec/test/sanity/test_blocks.py @@ -143,7 +143,7 @@ def test_empty_epoch_transition_not_finalizing(spec, state): yield 'post', state assert state.slot == block.slot - assert state.finalized_epoch < spec.get_current_epoch(state) - 4 + assert state.finalized_checkpoint.epoch < spec.get_current_epoch(state) - 4 for index in range(len(state.validators)): assert state.balances[index] < pre_balances[index]