Skip to content

Commit

Permalink
test: fix off-by-one in checkpoint_insert_existing
Browse files Browse the repository at this point in the history
  • Loading branch information
ValuedMammal committed Sep 12, 2024
1 parent e6aeaea commit 3ae9ecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/core/tests/test_checkpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fn checkpoint_insert_existing() {
let cp_chain = CheckPoint::from_block_ids(blocks[..=i].iter().copied())
.expect("must construct valid chain");

for j in 0..i {
for j in 0..=i {
let block_to_insert = cp_chain
.get(j as u32)
.expect("cp of height must exist")
Expand Down

0 comments on commit 3ae9ecb

Please sign in to comment.