summaryrefslogtreecommitdiff
path: root/jstests/replsets/libs/election_handoff.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/libs/election_handoff.js')
-rw-r--r--jstests/replsets/libs/election_handoff.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/jstests/replsets/libs/election_handoff.js b/jstests/replsets/libs/election_handoff.js
index 2edbf122af6..f05e6b702d7 100644
--- a/jstests/replsets/libs/election_handoff.js
+++ b/jstests/replsets/libs/election_handoff.js
@@ -5,7 +5,6 @@
*/
var ElectionHandoffTest = (function() {
-
load("jstests/libs/check_log.js");
load("jstests/replsets/rslib.js");
@@ -76,10 +75,10 @@ var ElectionHandoffTest = (function() {
// If there are only two nodes in the set, verify that the old primary voted "yes".
if (numNodes === 2) {
checkLog.contains(expectedCandidate,
- `skipping dry run and running for election in term ${term+1}`);
+ `skipping dry run and running for election in term ${term + 1}`);
checkLog.contains(
expectedCandidate,
- `VoteRequester(term ${term+1}) received a yes vote from ${primary.host}`);
+ `VoteRequester(term ${term + 1}) received a yes vote from ${primary.host}`);
}
rst.awaitNodesAgreeOnPrimary();
@@ -87,5 +86,4 @@ var ElectionHandoffTest = (function() {
}
return {testElectionHandoff: testElectionHandoff, stepDownPeriodSecs: kStepDownPeriodSecs};
-
})();