Skip to content

Commit

Permalink
fix: make the unit test less flaky
Browse files Browse the repository at this point in the history
  • Loading branch information
andysim3d committed Dec 19, 2024
1 parent 6054f88 commit 6eda480
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion bin/rundler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ reth-tasks.workspace = true
serde.workspace = true
serde_json.workspace = true
sscanf = "0.4.2"
tiny_http.workspace = true
tokio = { workspace = true, features = ["macros", "rt-multi-thread", "signal", "sync"] }
tokio-metrics = "0.3.1"
tokio-rustls = "0.26.0"
Expand Down
4 changes: 2 additions & 2 deletions crates/provider/src/alloy/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ mod tests {
});
{
// Wait 11 seconds and get result
let provider = new_alloy_provider("http://localhost:8000", 11)
let provider = new_alloy_provider("http://localhost:8000", 15)
.expect("can not initialize provider");
let x = provider.get_block_number().await;
assert!(x.is_ok());
}
{
// Wait 9 seconds and timeout form client side
let provider = new_alloy_provider("http://localhost:8000", 9)
let provider = new_alloy_provider("http://localhost:8000", 5)
.expect("can not initialize provider");
let x = provider.get_block_number().await;
assert!(x.is_err());
Expand Down

0 comments on commit 6eda480

Please sign in to comment.