summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jstests/replsets/last_vote.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/jstests/replsets/last_vote.js b/jstests/replsets/last_vote.js
index 84a6c206865..b9e0474217c 100644
--- a/jstests/replsets/last_vote.js
+++ b/jstests/replsets/last_vote.js
@@ -113,7 +113,10 @@
jsTestLog("Restarting node 0 in replica set mode");
node0 = rst.restart(0); // Restart in replSet mode again.
- assertCurrentTerm(node0, term);
+ assert.soonNoExcept(function() {
+ assertCurrentTerm(node0, term);
+ return true;
+ });
jsTestLog("Manually sending node 0 a dryRun replSetRequestVotes command, " +
"expecting failure in old term");