Skip to content

Commit ecd4eda

Browse files
committed
Add a test for legacyMode pingInterval
1 parent abf2b4b commit ecd4eda

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

packages/client/lib/client/index.spec.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,19 @@ describe('Client', () => {
341341
legacyMode: true
342342
}
343343
});
344+
345+
testUtils.testWithClient('pingInterval', async client => {
346+
assert.deepEqual(
347+
await once(client, 'ping-interval'),
348+
['PONG']
349+
);
350+
}, {
351+
...GLOBAL.SERVERS.OPEN,
352+
clientOptions: {
353+
legacyMode: true,
354+
pingInterval: 1
355+
}
356+
});
344357
});
345358

346359
describe('events', () => {

0 commit comments

Comments
 (0)