Skip to content

Commit

Permalink
add assert
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejdfinity committed Dec 27, 2024
1 parent 88f6d5d commit a8536e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rs/ledger_suite/icrc1/ledger/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1431,7 +1431,9 @@ fn test_get_archiveless_blocks() {
.query(ledger_id, "get_archiveless_blocks", block_args)
.expect("Unable to call get_blocks")
.bytes();
let new_blocks = Decode!(&res, GetBlocksResponse).unwrap();
let new_blocks = Decode!(&res, GetBlocksResponse).unwrap();
assert_eq!(old_blocks.blocks, new_blocks.blocks);
assert_eq!(old_blocks.blocks.len(), num_blocks as usize);
num_blocks += 100;
}
}
Expand Down

0 comments on commit a8536e3

Please sign in to comment.