@@ -1239,7 +1239,7 @@ async fn test_reconnection_retries_failed_subscriptions() {
12391239 client. wait_until_active ( 10.0 ) . await . unwrap ( ) ;
12401240 wait_for_connection_count ( & state, 1 , Duration :: from_secs ( 5 ) ) . await ;
12411241
1242- let first_events = wait_for_subscription_events ( & state, Duration :: from_secs ( 8 ) , |events| {
1242+ let first_events = wait_for_subscription_events ( & state, Duration :: from_secs ( 20 ) , |events| {
12431243 let instrument_ok = events
12441244 . iter ( )
12451245 . any ( |( topic, ok) | topic == "instrument" && * ok) ;
@@ -1283,7 +1283,7 @@ async fn test_reconnection_retries_failed_subscriptions() {
12831283 client. wait_until_active ( 10.0 ) . await . unwrap ( ) ;
12841284 wait_for_connection_count ( & state, 1 , Duration :: from_secs ( 5 ) ) . await ;
12851285
1286- let second_events = wait_for_subscription_events ( & state, Duration :: from_secs ( 8 ) , |events| {
1286+ let second_events = wait_for_subscription_events ( & state, Duration :: from_secs ( 20 ) , |events| {
12871287 events. iter ( ) . any ( |( topic, ok) | topic == "position" && * ok)
12881288 } )
12891289 . await ;
@@ -1516,8 +1516,8 @@ async fn test_rapid_consecutive_reconnections() {
15161516 "Reconnection cycle {cycle} failed"
15171517 ) ;
15181518
1519- // Wait for subscription restoration
1520- let events = wait_for_subscription_events ( & state, Duration :: from_secs ( 8 ) , |events| {
1519+ // Wait for subscription restoration (20s to account for slower CI runners)
1520+ let events = wait_for_subscription_events ( & state, Duration :: from_secs ( 20 ) , |events| {
15211521 events
15221522 . iter ( )
15231523 . any ( |( topic, ok) | topic == "trade:XBTUSD" && * ok)
@@ -1613,7 +1613,7 @@ async fn test_multiple_partial_subscription_failures() {
16131613 wait_for_connection_count ( & state, 1 , Duration :: from_secs ( 5 ) ) . await ;
16141614
16151615 // Wait for subscription restoration attempts
1616- let first_events = wait_for_subscription_events ( & state, Duration :: from_secs ( 8 ) , |events| {
1616+ let first_events = wait_for_subscription_events ( & state, Duration :: from_secs ( 20 ) , |events| {
16171617 let trade_xbt_failed = events
16181618 . iter ( )
16191619 . any ( |( topic, ok) | topic == "trade:XBTUSD" && !* ok) ;
@@ -1684,7 +1684,7 @@ async fn test_multiple_partial_subscription_failures() {
16841684 client. wait_until_active ( 10.0 ) . await . unwrap ( ) ;
16851685 wait_for_connection_count ( & state, 1 , Duration :: from_secs ( 5 ) ) . await ;
16861686
1687- let second_events = wait_for_subscription_events ( & state, Duration :: from_secs ( 8 ) , |events| {
1687+ let second_events = wait_for_subscription_events ( & state, Duration :: from_secs ( 20 ) , |events| {
16881688 events
16891689 . iter ( )
16901690 . any ( |( topic, ok) | topic == "trade:XBTUSD" && * ok)
0 commit comments