mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
SERVER-58814 Increase secondaryCatchUpPeriodSecs on stepdown_catch_up_opt.js
This commit is contained in:
parent
050161ecab
commit
99408f871e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user