Skip to content

Commit

Permalink
Merge pull request #3550 from ethereum/on-tick-precondition
Browse files Browse the repository at this point in the history
Check `assert time >= store.time` in fork-choice tests
  • Loading branch information
djrtwo authored Nov 30, 2023
2 parents 1028093 + 581a64b commit 8fa1f8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/core/pyspec/eth2spec/test/helpers/fork_choice.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def get_blobs_file_name(blobs=None, blobs_root=None):


def on_tick_and_append_step(spec, store, time, test_steps):
assert time >= store.time
spec.on_tick(store, time)
test_steps.append({'tick': int(time)})
output_store_checks(spec, store, test_steps)
Expand Down

0 comments on commit 8fa1f8e

Please sign in to comment.