Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
fgimenez committed Jan 16, 2025
1 parent 7eae688 commit cbcb20e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/stages/stages/src/stages/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1054,6 +1054,8 @@ mod tests {
)
.unwrap();

Arc::try_unwrap(provider).unwrap().commit().unwrap();

assert_matches!(result, UnwindOutput {
checkpoint: StageCheckpoint {
block_number: 0,
Expand All @@ -1070,6 +1072,8 @@ mod tests {
}
} if total == block.gas_used);

let provider = factory.database_provider_rw().unwrap();

// assert unwind stage
assert!(matches!(provider.basic_account(&acc1), Ok(Some(acc)) if acc == acc1_info));
assert!(matches!(provider.basic_account(&acc2), Ok(Some(acc)) if acc == acc2_info));
Expand Down

0 comments on commit cbcb20e

Please sign in to comment.