diff options
author | Pavi Vetriselvan <pavithra.vetriselvan@mongodb.com> | 2021-01-29 15:50:03 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-02-01 15:46:08 +0000 |
commit | d2af6646716ec66d7a75757bf73bacb0965273cd (patch) | |
tree | c112942dab160219bb55e1afbc36feeaa90a9df1 /jstests/replsets | |
parent | cada2662c229b72329a7fed7bf6ebfbcc9f740e1 (diff) | |
download | mongo-d2af6646716ec66d7a75757bf73bacb0965273cd.tar.gz |
SERVER-54147 initial_sync_nodes_contribute_to_liveness_majorities.js should check term is greater than previous term
Diffstat (limited to 'jstests/replsets')
-rw-r--r-- | jstests/replsets/initial_sync_nodes_contribute_to_liveness_majorities.js | 2 |
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 821012ad21f..9eaf71ad3a2 100644 --- a/jstests/replsets/initial_sync_nodes_contribute_to_liveness_majorities.js +++ b/jstests/replsets/initial_sync_nodes_contribute_to_liveness_majorities.js @@ -73,7 +73,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. |