From 9fca26352c1c193bd4a5a555b909cdef4022e824 Mon Sep 17 00:00:00 2001 From: William Schultz Date: Fri, 28 Jul 2017 14:46:41 -0400 Subject: SERVER-30411 last_vote.js should wrap term checks in exception safe retry --- jstests/replsets/last_vote.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"); -- cgit v1.2.1