summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorHuayu Ouyang <huayu.ouyang@mongodb.com>2021-07-23 21:05:40 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-07-26 18:10:44 +0000
commit99408f871e41dc488d3148a2f0dda0fb3c476972 (patch)
treee5b3cd5e1c22d2383fb99e5d3663911c6622fdc2 /jstests
parent050161ecaba1b7e0881d2240477b00fcca9cc946 (diff)
downloadmongo-99408f871e41dc488d3148a2f0dda0fb3c476972.tar.gz
SERVER-58814 Increase secondaryCatchUpPeriodSecs on stepdown_catch_up_opt.js
Diffstat (limited to 'jstests')
-rw-r--r--jstests/replsets/stepdown_catch_up_opt.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/replsets/stepdown_catch_up_opt.js b/jstests/replsets/stepdown_catch_up_opt.js
index ffd103adc96..eb6b220e197 100644
--- a/jstests/replsets/stepdown_catch_up_opt.js
+++ b/jstests/replsets/stepdown_catch_up_opt.js
@@ -63,16 +63,16 @@ try {
jsTestLog('Try to step down.');
var startTime = new Date();
assert.commandFailedWithCode(
- primary.getDB('admin').runCommand({replSetStepDown: 10, secondaryCatchUpPeriodSecs: 1}),
+ primary.getDB('admin').runCommand({replSetStepDown: 10, secondaryCatchUpPeriodSecs: 2}),
noCaughtUpSecondariesCode,
'Expected replSetStepDown to fail, since no secondaries should be caught up.');
var endTime = new Date();
- // Ensure it took at least 1 second to time out. Adjust the timeout a little bit
+ // Ensure it took at least 2 second to time out. Adjust the timeout a little bit
// for the precision issue of clock on Windows 2K8.
- assert.lte(0.95,
+ assert.lte(1.95,
(endTime - startTime) / 1000,
- 'Expected replSetStepDown command to fail after 1 second.');
+ 'Expected replSetStepDown command to fail after 2 seconds.');
} catch (err) {
disableFailPoint();
throw err;