diff options
author | William Schultz <william.schultz@mongodb.com> | 2017-07-28 14:46:41 -0400 |
---|---|---|
committer | William Schultz <william.schultz@mongodb.com> | 2017-07-28 14:48:22 -0400 |
commit | 9fca26352c1c193bd4a5a555b909cdef4022e824 (patch) | |
tree | 9cf85a35ec0d9e22bb7b7eba854901d4b5f496bd | |
parent | 144825f7bb036647bbb0cac1b0f6e1a86cacec59 (diff) | |
download | mongo-9fca26352c1c193bd4a5a555b909cdef4022e824.tar.gz |
SERVER-30411 last_vote.js should wrap term checks in exception safe retry
-rw-r--r-- | jstests/replsets/last_vote.js | 5 |
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"); |