summaryrefslogtreecommitdiff
path: root/jstests/replsets/stepdown_catch_up_opt.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/stepdown_catch_up_opt.js')
-rw-r--r--jstests/replsets/stepdown_catch_up_opt.js15
1 files changed, 7 insertions, 8 deletions
diff --git a/jstests/replsets/stepdown_catch_up_opt.js b/jstests/replsets/stepdown_catch_up_opt.js
index 304927a7838..48bd11adde1 100644
--- a/jstests/replsets/stepdown_catch_up_opt.js
+++ b/jstests/replsets/stepdown_catch_up_opt.js
@@ -26,10 +26,10 @@
var stringNotIntCode = 14;
// Expect a failure with a string argument.
- assert.commandFailedWithCode(primary.getDB('admin').runCommand(
- {replSetStepDown: 10, secondaryCatchUpPeriodSecs: 'STR'}),
- stringNotIntCode,
- 'Expected string argument to secondaryCatchupPeriodSecs to fail.');
+ assert.commandFailedWithCode(
+ primary.getDB('admin').runCommand({replSetStepDown: 10, secondaryCatchUpPeriodSecs: 'STR'}),
+ stringNotIntCode,
+ 'Expected string argument to secondaryCatchupPeriodSecs to fail.');
// Expect a failure with a longer secondaryCatchupPeriodSecs than the stepdown period.
assert.commandFailedWithCode(
@@ -44,8 +44,8 @@
'Failed to configure rsSyncApplyStop failpoint.');
function disableFailPoint() {
- assert.commandWorked(secondary.getDB('admin')
- .runCommand({configureFailPoint: 'rsSyncApplyStop', mode: 'off'}),
+ assert.commandWorked(secondary.getDB('admin').runCommand(
+ {configureFailPoint: 'rsSyncApplyStop', mode: 'off'}),
'Failed to disable rsSyncApplyStop failpoint.');
}
@@ -60,8 +60,7 @@
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: 1}),
noCaughtUpSecondariesCode,
'Expected replSetStepDown to fail, since no secondaries should be caught up.');
var endTime = new Date();