rearrange so maybe time works better

This commit is contained in:
Bryan Stitt 2023-06-24 21:41:18 -07:00
parent c2917f1093
commit e7baeb1ba4

@ -398,7 +398,6 @@ mod tests {
#[test_log::test(tokio::test)] #[test_log::test(tokio::test)]
async fn it_works() { async fn it_works() {
// TODO: move basic setup into a test fixture
let x = TestApp::spawn().await; let x = TestApp::spawn().await;
let anvil_provider = &x.anvil_provider; let anvil_provider = &x.anvil_provider;
@ -434,6 +433,11 @@ mod tests {
.await .await
.unwrap() .unwrap()
.unwrap(); .unwrap();
let second_block_num = anvil_result.number.unwrap();
assert_eq!(first_block_num, second_block_num - 1);
let proxy_result = proxy_provider let proxy_result = proxy_provider
.request::<_, Option<ArcBlock>>("eth_getBlockByNumber", ("latest", false)) .request::<_, Option<ArcBlock>>("eth_getBlockByNumber", ("latest", false))
.await .await
@ -442,10 +446,6 @@ mod tests {
assert_eq!(anvil_result, proxy_result); assert_eq!(anvil_result, proxy_result);
let second_block_num = anvil_result.number.unwrap();
assert_eq!(first_block_num, second_block_num - 1);
x.wait().await; x.wait().await;
} }
} }