Skip to content

Commit dad1a54

Browse files
reduced sentinel config timeouts, removed unneeded comment
1 parent 33eba72 commit dad1a54

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -376,11 +376,6 @@ describe(`test with masterPoolSize 2`, () => {
376376
}, GLOBAL.SENTINEL.WITH_MASTER_POOL_SIZE_2);
377377
});
378378

379-
380-
// TODO: Figure out how to modify the test utils
381-
// so it would have fine grained controll over
382-
// sentinel
383-
// it should somehow replicate the `SentinelFramework` object functionallities
384379
async function steadyState(frame: SentinelFramework) {
385380
// wait a bit to ensure that sentinels are seeing eachother
386381
await setTimeout(2000)

packages/test-utils/lib/dockers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,8 @@ export async function spawnSentinelNode(
419419

420420
let sentinelConfig = `port ${port}
421421
sentinel monitor ${sentinelName} 127.0.0.1 ${masterPort} 2
422-
sentinel down-after-milliseconds ${sentinelName} 5000
423-
sentinel failover-timeout ${sentinelName} 6000
422+
sentinel down-after-milliseconds ${sentinelName} 500
423+
sentinel failover-timeout ${sentinelName} 1000
424424
`;
425425
if (password !== undefined) {
426426
sentinelConfig += `requirepass ${password}\n`;

0 commit comments

Comments
 (0)