66import com .piasy .kmp .socketio .socketio .IO ;
77import com .piasy .kmp .socketio .socketio .Manager ;
88import com .piasy .kmp .socketio .socketio .Socket ;
9+ import com .piasy .kmp .xlog .Logging ;
10+
911import kotlin .Unit ;
1012import kotlinx .io .bytestring .ByteString ;
1113import kotlinx .serialization .json .*;
@@ -454,7 +456,7 @@ public void reconnectDelayShouldIncreaseEveryTime() throws InterruptedException
454456 opts .reconnection = true ;
455457 opts .timeout = 0 ;
456458 opts .reconnectionAttempts = 3 ;
457- opts .setReconnectionDelay (100 );
459+ opts .setReconnectionDelay (1000 );
458460 opts .setRandomizationFactor (0.2 );
459461 final Manager manager = new Manager (uri (), opts , TestUtil .testScope ());
460462 socket = TestUtil .socket (manager , "/timeout" );
@@ -468,6 +470,7 @@ public void reconnectDelayShouldIncreaseEveryTime() throws InterruptedException
468470 @ Override
469471 public void call (Object ... args ) {
470472 startTime [0 ] = new Date ().getTime ();
473+ Logging .INSTANCE .info (TAG , "reconnectDelayShouldIncreaseEveryTime startTime " + startTime [0 ]);
471474 }
472475 });
473476 manager .on (Manager .EVENT_RECONNECT_ATTEMPT , new Emitter .Listener () {
@@ -476,6 +479,8 @@ public void call(Object... args) {
476479 reconnects [0 ]++;
477480 long currentTime = new Date ().getTime ();
478481 long delay = currentTime - startTime [0 ];
482+ Logging .INSTANCE .info (TAG , "reconnectDelayShouldIncreaseEveryTime currentTime "
483+ + currentTime + ", delay " + delay + ", prevDelay " + prevDelay [0 ]);
479484 if (delay <= prevDelay [0 ]) {
480485 increasingDelay [0 ] = false ;
481486 }
0 commit comments