Skip to content

Commit 8b26470

Browse files
committed
Add test_fork_pre_activation test case
1 parent 01a2c7b commit 8b26470

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/core/pyspec/eth2spec/test/electra/fork/test_electra_fork_basic.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,18 @@ def test_fork_random_large_validator_set(spec, phases, state):
8282
yield from run_fork_test(phases[ELECTRA], state)
8383

8484

85+
@with_phases(phases=[DENEB], other_phases=[ELECTRA])
86+
@spec_test
87+
@with_state
88+
@with_meta_tags(ELECTRA_FORK_TEST_META_TAGS)
89+
def test_fork_pre_activation(spec, phases, state):
90+
post_spec = phases[ELECTRA]
91+
state.validators[0].activation_epoch = spec.FAR_FUTURE_EPOCH
92+
post_state = yield from run_fork_test(post_spec, state)
93+
94+
assert len(post_state.pending_balance_deposits) > 0
95+
96+
8597
@with_phases(phases=[DENEB], other_phases=[ELECTRA])
8698
@spec_test
8799
@with_state

0 commit comments

Comments
 (0)