summaryrefslogtreecommitdiff
path: root/jstests/replsets/election_handoff_one_unelectable.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/election_handoff_one_unelectable.js')
-rw-r--r--jstests/replsets/election_handoff_one_unelectable.js32
1 files changed, 17 insertions, 15 deletions
diff --git a/jstests/replsets/election_handoff_one_unelectable.js b/jstests/replsets/election_handoff_one_unelectable.js
index 97546cbb1ea..970b605197c 100644
--- a/jstests/replsets/election_handoff_one_unelectable.js
+++ b/jstests/replsets/election_handoff_one_unelectable.js
@@ -6,24 +6,26 @@
*/
(function() {
- "use strict";
- load("jstests/replsets/libs/election_handoff.js");
+"use strict";
+load("jstests/replsets/libs/election_handoff.js");
- const testName = "election_handoff_one_unelectable";
- const numNodes = 3;
- const rst = ReplSetTest({name: testName, nodes: numNodes});
- const nodes = rst.nodeList();
- rst.startSet();
+const testName = "election_handoff_one_unelectable";
+const numNodes = 3;
+const rst = ReplSetTest({name: testName, nodes: numNodes});
+const nodes = rst.nodeList();
+rst.startSet();
- const config = rst.getReplSetConfig();
- config.members[1].priority = 0;
+const config = rst.getReplSetConfig();
+config.members[1].priority = 0;
- // 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.
- config.settings = {"electionTimeoutMillis": 12 * 60 * 60 * 1000};
- rst.initiate(config);
+// 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.
+config.settings = {
+ "electionTimeoutMillis": 12 * 60 * 60 * 1000
+};
+rst.initiate(config);
- ElectionHandoffTest.testElectionHandoff(rst, 0, 2);
+ElectionHandoffTest.testElectionHandoff(rst, 0, 2);
- rst.stopSet();
+rst.stopSet();
})(); \ No newline at end of file