summaryrefslogtreecommitdiff
path: root/jstests/replsets/reconfig_during_election.js
diff options
context:
space:
mode:
authorMatthew Russotto <matthew.russotto@10gen.com>2019-02-07 15:52:06 -0500
committerMatthew Russotto <matthew.russotto@10gen.com>2019-02-12 11:07:46 -0500
commit77dccdfdc54eab46031f465a2e46570cc5c3c52f (patch)
tree9c7b1449f6dedd7076256d314aee52637445f43c /jstests/replsets/reconfig_during_election.js
parentc3a72d61dc8ab4aa32fae400c74b06360a572537 (diff)
downloadmongo-77dccdfdc54eab46031f465a2e46570cc5c3c52f.tar.gz
SERVER-38516 Tighten up tests that don't fail when not closing connections during stepdown bbut allow exceptions during stepdown
Diffstat (limited to 'jstests/replsets/reconfig_during_election.js')
-rw-r--r--jstests/replsets/reconfig_during_election.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/replsets/reconfig_during_election.js b/jstests/replsets/reconfig_during_election.js
index 4f58b3cd477..aaf33c8ac67 100644
--- a/jstests/replsets/reconfig_during_election.js
+++ b/jstests/replsets/reconfig_during_election.js
@@ -26,10 +26,10 @@
}));
// The incumbent sends replSetStepUp to the candidate for election handoff.
- assert.adminCommandWorkedAllowingNetworkError(incumbent, {
+ assert.commandWorked(incumbent.adminCommand({
replSetStepDown: ElectionHandoffTest.stepDownPeriodSecs,
secondaryCatchUpPeriodSecs: ElectionHandoffTest.stepDownPeriodSecs / 2
- });
+ }));
jsTestLog("Wait for candidate to win the election");
@@ -46,4 +46,4 @@
{configureFailPoint: "electionHangsBeforeUpdateMemberState", mode: "off"}));
rst.stopSet();
-})(); \ No newline at end of file
+})();