File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -722,20 +722,20 @@ mod tests {
722722
723723 #[ tokio:: test]
724724 async fn test_stream_with_failover ( ) -> anyhow:: Result < ( ) > {
725- let mut anvil_1 = Some ( Anvil :: new ( ) . block_time ( 1 ) . try_spawn ( ) ?) ;
725+ let mut anvil_1 = Some ( Anvil :: new ( ) . block_time_f64 ( 0. 1) . try_spawn ( ) ?) ;
726726
727727 let ws_provider = ProviderBuilder :: new ( )
728728 . connect ( anvil_1. as_ref ( ) . unwrap ( ) . ws_endpoint_url ( ) . as_str ( ) )
729729 . await ?;
730730
731- let anvil_2 = Anvil :: new ( ) . block_time ( 1 ) . try_spawn ( ) ?;
731+ let anvil_2 = Anvil :: new ( ) . block_time_f64 ( 0. 1) . try_spawn ( ) ?;
732732
733733 let ws_provider_2 =
734734 ProviderBuilder :: new ( ) . connect ( anvil_2. ws_endpoint_url ( ) . as_str ( ) ) . await ?;
735735
736736 let robust = RobustProviderBuilder :: fragile ( ws_provider. clone ( ) )
737737 . fallback ( ws_provider_2)
738- . subscription_timeout ( Duration :: from_secs ( 3 ) )
738+ . subscription_timeout ( Duration :: from_millis ( 500 ) )
739739 . build ( )
740740 . await ?;
741741
@@ -756,7 +756,7 @@ mod tests {
756756 drop ( anvil) ;
757757 }
758758
759- if block_number >= 20 {
759+ if block_number >= 11 {
760760 break ;
761761 }
762762 }
You can’t perform that action at this time.
0 commit comments