File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
src/test/java/com/pusher/client/connection/websocket Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -298,21 +298,13 @@ public void testDisconnectInDisconnectingStateIsIgnored() {
298298 }
299299
300300 @ Test
301- public void testPongTimeoutResultsInDisconnect () throws InterruptedException {
301+ public void testPongTimeoutResultsInClosingConnection () throws InterruptedException {
302302 when (factory .getTimers ()).thenReturn (new ScheduledThreadPoolExecutor (2 ));
303303
304304 connection .connect ();
305305 connection .onMessage (CONN_ESTABLISHED_EVENT );
306306
307307 verify (mockUnderlyingConnection , timeout ((int ) (ACTIVITY_TIMEOUT + PONG_TIMEOUT ))).close ();
308-
309- verify (mockEventListener ).onConnectionStateChange (
310- new ConnectionStateChange (ConnectionState .CONNECTED , ConnectionState .DISCONNECTING ));
311-
312- verify (mockEventListener ).onConnectionStateChange (
313- new ConnectionStateChange (ConnectionState .DISCONNECTING , ConnectionState .DISCONNECTED ));
314-
315- assertEquals (ConnectionState .DISCONNECTED , connection .getState ());
316308 }
317309
318310 @ Test
You can’t perform that action at this time.
0 commit comments