tests pass local, but jenkins isn't as fast
This commit is contained in:
parent
b5ae11b7f7
commit
ba702c7647
@ -269,7 +269,7 @@ mod tests {
|
|||||||
};
|
};
|
||||||
use tokio::{
|
use tokio::{
|
||||||
sync::broadcast::error::SendError,
|
sync::broadcast::error::SendError,
|
||||||
task::JoinHandle,
|
task::{yield_now, JoinHandle},
|
||||||
time::{sleep, Instant},
|
time::{sleep, Instant},
|
||||||
};
|
};
|
||||||
use web3_proxy::{
|
use web3_proxy::{
|
||||||
@ -425,6 +425,8 @@ mod tests {
|
|||||||
.await
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
|
yield_now().await;
|
||||||
|
|
||||||
// make sure the block advanced
|
// make sure the block advanced
|
||||||
let anvil_result = anvil_provider
|
let anvil_result = anvil_provider
|
||||||
.request::<_, Option<ArcBlock>>("eth_getBlockByNumber", ("latest", false))
|
.request::<_, Option<ArcBlock>>("eth_getBlockByNumber", ("latest", false))
|
||||||
|
Loading…
Reference in New Issue
Block a user