Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin committed Nov 16, 2023
1 parent f4be9ea commit 9f7895c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions crates/prune/src/segments/account_history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ mod tests {
.filter(|(key, _)| key.highest_block_number > last_pruned_block_number)
.map(|(key, blocks)| {
let new_blocks = blocks
.iter(0)
.skip_while(|block| *block <= last_pruned_block_number as usize)
.iter()
.skip_while(|block| *block <= last_pruned_block_number)
.collect::<Vec<_>>();
(key.clone(), BlockNumberList::new_pre_sorted(new_blocks))
})
Expand Down
4 changes: 2 additions & 2 deletions crates/prune/src/segments/storage_history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ mod tests {
.filter(|(key, _)| key.sharded_key.highest_block_number > last_pruned_block_number)
.map(|(key, blocks)| {
let new_blocks = blocks
.iter(0)
.skip_while(|block| *block <= last_pruned_block_number as usize)
.iter()
.skip_while(|block| *block <= last_pruned_block_number)
.collect::<Vec<_>>();
(key.clone(), BlockNumberList::new_pre_sorted(new_blocks))
})
Expand Down
2 changes: 1 addition & 1 deletion crates/stages/src/stages/index_account_history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ mod tests {
table
.into_iter()
.map(|(k, v)| {
let v = v.iter(0).collect();
let v = v.iter().collect();
(k, v)
})
.collect()
Expand Down
2 changes: 1 addition & 1 deletion crates/stages/src/stages/index_storage_history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ mod tests {
table
.into_iter()
.map(|(k, v)| {
let v = v.iter(0).collect();
let v = v.iter().collect();
(k, v)
})
.collect()
Expand Down

0 comments on commit 9f7895c

Please sign in to comment.