summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavi Vetriselvan <pavithra.vetriselvan@mongodb.com>2021-01-29 15:50:03 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-02-18 15:28:35 +0000
commit069d940534182cd431e6debf9a3855129cadf8b7 (patch)
treef1eae2573eb9251952ef464730d5a5688b2f4331
parent0ec6d563846dd45434ee5e95ef080fb5a7e2ccd3 (diff)
downloadmongo-069d940534182cd431e6debf9a3855129cadf8b7.tar.gz
SERVER-54147 initial_sync_nodes_contribute_to_liveness_majorities.js should check term is greater than previous term
(cherry picked from commit d2af6646716ec66d7a75757bf73bacb0965273cd)
-rw-r--r--jstests/replsets/initial_sync_nodes_contribute_to_liveness_majorities.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/initial_sync_nodes_contribute_to_liveness_majorities.js b/jstests/replsets/initial_sync_nodes_contribute_to_liveness_majorities.js
index a5787e445ac..b080de0cf86 100644
--- a/jstests/replsets/initial_sync_nodes_contribute_to_liveness_majorities.js
+++ b/jstests/replsets/initial_sync_nodes_contribute_to_liveness_majorities.js
@@ -66,7 +66,7 @@ assert.eq(primary, rst.getPrimary());
// Verify that the term has incremented due to the last election.
primaryReplSetStatus = assert.commandWorked(primary.adminCommand({replSetGetStatus: 1}));
-assert.eq(2, primaryReplSetStatus.term);
+assert.gt(primaryReplSetStatus.term, 1);
// Verify that initial sync node voted in the election and sets the correct term in its
// electionParticipantMetrics field.