File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -323,10 +323,20 @@ async fn forked_mainnet_wrapper_test(web3: Web3) {
323323 tracing:: info!( "Wrapper call data: {:?}" , call_data_strings) ;
324324
325325 // Check that the auction ID propogated through the wrappers ok
326- services
327- . get_solver_competition ( solve_tx_hash)
328- . await
329- . unwrap ( ) ;
326+ // Sometimes the API isnt ready to respond to the request immediately so we wait
327+ // a bit for success
328+ wait_for_condition ( TIMEOUT , || async {
329+ let auction_info = services. get_solver_competition ( solve_tx_hash) . await ;
330+
331+ if let Ok ( a) = auction_info {
332+ tracing:: info!( "Pulled auction id {:?}" , a. auction_id) ;
333+ true
334+ } else {
335+ false
336+ }
337+ } )
338+ . await
339+ . unwrap ( ) ;
330340
331341 tracing:: info!(
332342 "Order with wrapper successfully traded on forked mainnet with verified wrapper calls"
You can’t perform that action at this time.
0 commit comments