You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// shut down the default mock WS server used in these tests as we will customize its behaviour in this test
@@ -249,7 +250,7 @@ describe('Integration tests with a WebSocket server', { timeout: 30000 }, () =>
249
250
clientOptions: {
250
251
slackApiUrl: `http://localhost:${HTTP_PORT}/`,
251
252
},
252
-
clientPingTimeout: 25,
253
+
clientPingTimeout: 100,
253
254
});
254
255
});
255
256
it('raises connecting event during `start()`',async()=>{
@@ -310,7 +311,9 @@ describe('Integration tests with a WebSocket server', { timeout: 30000 }, () =>
310
311
});
311
312
});
312
313
afterEach(async()=>{
313
-
awaitclient.disconnect();
314
+
if(client){
315
+
awaitclient.disconnect();
316
+
}
314
317
});
315
318
// These tests check that specific type:disconnect events, of various reasons, sent by Slack backend are not raised as slack_events for apps to consume.
316
319
for(constreasonofDISCONNECT_REASONS){
@@ -363,8 +366,8 @@ describe('Integration tests with a WebSocket server', { timeout: 30000 }, () =>
363
366
clientOptions: {
364
367
slackApiUrl: `http://localhost:${HTTP_PORT}/`,
365
368
},
366
-
clientPingTimeout: 25,
367
-
serverPingTimeout: 25,
369
+
clientPingTimeout: 100,
370
+
serverPingTimeout: 100,
368
371
pingPongLoggingEnabled: false,
369
372
});
370
373
});
@@ -373,8 +376,8 @@ describe('Integration tests with a WebSocket server', { timeout: 30000 }, () =>
373
376
// create a waiter for post-reconnect connected event
0 commit comments