Skip to content

Commit 3ae9ecb

Browse files
committed
test: fix off-by-one in checkpoint_insert_existing
1 parent e6aeaea commit 3ae9ecb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/core/tests/test_checkpoint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fn checkpoint_insert_existing() {
1919
let cp_chain = CheckPoint::from_block_ids(blocks[..=i].iter().copied())
2020
.expect("must construct valid chain");
2121

22-
for j in 0..i {
22+
for j in 0..=i {
2323
let block_to_insert = cp_chain
2424
.get(j as u32)
2525
.expect("cp of height must exist")

0 commit comments

Comments
 (0)