Skip to content

Commit 8fa1f8e

Browse files
authored
Merge pull request #3550 from ethereum/on-tick-precondition
Check `assert time >= store.time` in fork-choice tests
2 parents 1028093 + 581a64b commit 8fa1f8e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/core/pyspec/eth2spec/test/helpers/fork_choice.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ def get_blobs_file_name(blobs=None, blobs_root=None):
144144

145145

146146
def on_tick_and_append_step(spec, store, time, test_steps):
147+
assert time >= store.time
147148
spec.on_tick(store, time)
148149
test_steps.append({'tick': int(time)})
149150
output_store_checks(spec, store, test_steps)

0 commit comments

Comments
 (0)