summaryrefslogtreecommitdiff
path: root/jstests/replsets/election_handoff_flip.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/election_handoff_flip.js')
-rw-r--r--jstests/replsets/election_handoff_flip.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/jstests/replsets/election_handoff_flip.js b/jstests/replsets/election_handoff_flip.js
index c2576023048..8ce2b804ca8 100644
--- a/jstests/replsets/election_handoff_flip.js
+++ b/jstests/replsets/election_handoff_flip.js
@@ -15,11 +15,7 @@ rst.startSet();
// Make sure there are no election timeouts firing for the duration of the test. This helps
// ensure that the test will only pass if the election handoff succeeds.
-const config = rst.getReplSetConfig();
-config.settings = {
- "electionTimeoutMillis": 12 * 60 * 60 * 1000
-};
-rst.initiate(config);
+rst.initiateWithHighElectionTimeout();
ElectionHandoffTest.testElectionHandoff(rst, 0, 1);
sleep(ElectionHandoffTest.stepDownPeriodSecs * 1000);