From 14f71ffb4bb49f436dff5262cebed2720e0bdef7 Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Tue, 7 Sep 2021 12:25:09 -0700 Subject: [PATCH] Use realistic `withdrawable_epoch` in spec test --- .../test_process_justification_and_finalization.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/core/pyspec/eth2spec/test/phase0/epoch_processing/test_process_justification_and_finalization.py b/tests/core/pyspec/eth2spec/test/phase0/epoch_processing/test_process_justification_and_finalization.py index 1dfc07188..1d3197ba6 100644 --- a/tests/core/pyspec/eth2spec/test/phase0/epoch_processing/test_process_justification_and_finalization.py +++ b/tests/core/pyspec/eth2spec/test/phase0/epoch_processing/test_process_justification_and_finalization.py @@ -330,6 +330,7 @@ def test_balance_threshold_with_exited_validators(spec, state): validator = state.validators[index] validator.exit_epoch = epoch validator.withdrawable_epoch = epoch + 1 + validator.withdrawable_epoch = validator.exit_epoch + spec.config.MIN_VALIDATOR_WITHDRAWABILITY_DELAY exited_validators = get_unslashed_exited_validators(spec, state) assert len(exited_validators) != 0