From ba702c76472292d3485ee5a747089ff6d221f513 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Sat, 24 Jun 2023 21:27:11 -0700 Subject: [PATCH] tests pass local, but jenkins isn't as fast --- web3_proxy/src/bin/web3_proxy_cli/proxyd.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web3_proxy/src/bin/web3_proxy_cli/proxyd.rs b/web3_proxy/src/bin/web3_proxy_cli/proxyd.rs index 14b6521e..cfbd3812 100644 --- a/web3_proxy/src/bin/web3_proxy_cli/proxyd.rs +++ b/web3_proxy/src/bin/web3_proxy_cli/proxyd.rs @@ -269,7 +269,7 @@ mod tests { }; use tokio::{ sync::broadcast::error::SendError, - task::JoinHandle, + task::{yield_now, JoinHandle}, time::{sleep, Instant}, }; use web3_proxy::{ @@ -425,6 +425,8 @@ mod tests { .await .unwrap(); + yield_now().await; + // make sure the block advanced let anvil_result = anvil_provider .request::<_, Option>("eth_getBlockByNumber", ("latest", false))