an error here is unexpected. figure out why its happening
This commit is contained in:
parent
47fd88c1c6
commit
b205b2e863
|
@ -82,10 +82,11 @@ async fn it_starts_and_stops() {
|
||||||
|
|
||||||
for _ in 0..10 {
|
for _ in 0..10 {
|
||||||
// TODO: we currently give a 502 here when we should give a `None`
|
// TODO: we currently give a 502 here when we should give a `None`
|
||||||
if let Ok(x) = proxy_provider
|
match proxy_provider
|
||||||
.request::<_, Option<ArcBlock>>("eth_getBlockByNumber", ("latest", false))
|
.request::<_, Option<ArcBlock>>("eth_getBlockByNumber", ("latest", false))
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
|
Ok(x) => {
|
||||||
proxy_result = x;
|
proxy_result = x;
|
||||||
|
|
||||||
if let Some(ref proxy_result) = proxy_result {
|
if let Some(ref proxy_result) = proxy_result {
|
||||||
|
@ -93,12 +94,16 @@ async fn it_starts_and_stops() {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
warn!(?proxy_result, ?second_block_num);
|
warn!(?proxy_result, ?second_block_num);
|
||||||
|
|
||||||
sleep(Duration::from_millis(100)).await;
|
sleep(Duration::from_millis(100)).await;
|
||||||
}
|
}
|
||||||
|
Err(err) => {
|
||||||
|
panic!("{:?}", err);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
assert_eq!(Some(anvil_result), proxy_result);
|
assert_eq!(Some(anvil_result), proxy_result);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue