diff --git a/crates/provider/src/ext/anvil.rs b/crates/provider/src/ext/anvil.rs index 22100f956c3..e3719e64ab1 100644 --- a/crates/provider/src/ext/anvil.rs +++ b/crates/provider/src/ext/anvil.rs @@ -431,11 +431,11 @@ mod tests { let start_num = provider.get_block_number().await.unwrap(); - tokio::time::sleep(tokio::time::Duration::from_secs(2)).await; + tokio::time::sleep(tokio::time::Duration::from_millis(1500)).await; let num = provider.get_block_number().await.unwrap(); - assert_eq!(num, start_num + 2); + assert_eq!(num, start_num + 1); } #[tokio::test]