diff options
Diffstat (limited to 'jstests/replsets/election_handoff_basic.js')
-rw-r--r-- | jstests/replsets/election_handoff_basic.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/jstests/replsets/election_handoff_basic.js b/jstests/replsets/election_handoff_basic.js index 2c1e27b6ece..2a4376689d8 100644 --- a/jstests/replsets/election_handoff_basic.js +++ b/jstests/replsets/election_handoff_basic.js @@ -16,11 +16,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); |