Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-atreya committed Oct 22, 2024
1 parent 2fdbd51 commit 0d9d8a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/anvil/tests/it/anvil_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ async fn test_evm_set_time() {
api.evm_mine(None).await.unwrap();
let next = provider.get_block(BlockId::default(), false.into()).await.unwrap().unwrap();

assert!(next.header.timestamp > block.header.timestamp);
assert!(next.header.timestamp >= block.header.timestamp);
}

#[tokio::test(flavor = "multi_thread")]
Expand Down Expand Up @@ -608,7 +608,7 @@ async fn test_fork_revert_next_block_timestamp() {

api.mine_one().await;
let block = api.block_by_number(BlockNumberOrTag::Latest).await.unwrap().unwrap();
assert!(block.header.timestamp > latest_block.header.timestamp);
assert!(block.header.timestamp >= latest_block.header.timestamp);
}

// test that after a snapshot revert, the env block is reset
Expand Down

0 comments on commit 0d9d8a5

Please sign in to comment.