Skip to content

Commit 061ce13

Browse files
committed
test: adjust timings for ping tests
1 parent 470e415 commit 061ce13

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/client.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2479,8 +2479,8 @@ describe('RPCClient', function(){
24792479
withClient: async (client) => {
24802480
// send some rapid activity from the server
24812481
for (let i = 0; i < 4; i++) {
2482-
await client.call('Echo', {});
24832482
await setTimeout(25);
2483+
await client.call('Echo', {});
24842484
}
24852485
await client.close();
24862486
}
@@ -2490,7 +2490,7 @@ describe('RPCClient', function(){
24902490
identity: 'X',
24912491
reconnect: false,
24922492
deferPingsOnActivity: true,
2493-
pingIntervalMs: 40
2493+
pingIntervalMs: 50
24942494
});
24952495
cli.handle('Echo', async ({params}) => {
24962496
return params;
@@ -2517,8 +2517,8 @@ describe('RPCClient', function(){
25172517
withClient: async (client) => {
25182518
// send some rapid activity from the server
25192519
for (let i = 0; i < 4; i++) {
2520-
await client.call('Echo', {});
25212520
await setTimeout(25);
2521+
await client.call('Echo', {});
25222522
}
25232523
await client.close();
25242524
}
@@ -2528,7 +2528,7 @@ describe('RPCClient', function(){
25282528
identity: 'X',
25292529
reconnect: false,
25302530
deferPingsOnActivity: false,
2531-
pingIntervalMs: 40
2531+
pingIntervalMs: 50
25322532
});
25332533
cli.handle('Echo', async ({params}) => {
25342534
return params;
@@ -2567,7 +2567,7 @@ describe('RPCClient', function(){
25672567
identity: 'X',
25682568
reconnect: false,
25692569
deferPingsOnActivity: true,
2570-
pingIntervalMs: 40
2570+
pingIntervalMs: 50
25712571
});
25722572

25732573
// count how many times we ping the server
@@ -2602,7 +2602,7 @@ describe('RPCClient', function(){
26022602
identity: 'X',
26032603
reconnect: false,
26042604
deferPingsOnActivity: false,
2605-
pingIntervalMs: 40
2605+
pingIntervalMs: 50
26062606
});
26072607

26082608
// count how many times we ping the server

0 commit comments

Comments
 (0)