summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Schultz <william.schultz@mongodb.com>2017-07-28 14:46:41 -0400
committerWilliam Schultz <william.schultz@mongodb.com>2017-07-28 14:48:22 -0400
commit9fca26352c1c193bd4a5a555b909cdef4022e824 (patch)
tree9cf85a35ec0d9e22bb7b7eba854901d4b5f496bd
parent144825f7bb036647bbb0cac1b0f6e1a86cacec59 (diff)
downloadmongo-9fca26352c1c193bd4a5a555b909cdef4022e824.tar.gz
SERVER-30411 last_vote.js should wrap term checks in exception safe retry
-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");