summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorJudah Schvimer <judah.schvimer@10gen.com>2020-01-21 15:44:51 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-01-31 19:43:40 +0000
commitee21b1376e7fb6502db30652ebdf0a65ac876de4 (patch)
tree3e59ac367495af20852ac6e3847ac77e14032901 /jstests
parent6557a3007a54cc739629694e2ae74783cfcc3e45 (diff)
downloadmongo-ee21b1376e7fb6502db30652ebdf0a65ac876de4.tar.gz
SERVER-45493 temporarily disable failing assertion in election_candidate_and_participant_metrics.js
(cherry picked from commit f6622508476deda1bbee51247a4ac6118f121440)
Diffstat (limited to 'jstests')
-rw-r--r--jstests/replsets/election_candidate_and_participant_metrics.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/jstests/replsets/election_candidate_and_participant_metrics.js b/jstests/replsets/election_candidate_and_participant_metrics.js
index 029db2fc883..9c7db42e879 100644
--- a/jstests/replsets/election_candidate_and_participant_metrics.js
+++ b/jstests/replsets/election_candidate_and_participant_metrics.js
@@ -108,7 +108,8 @@ assert(newPrimaryElectionCandidateMetrics.electionTimeoutMillis,
assert.eq(newPrimaryElectionCandidateMetrics.electionTimeoutMillis, expectedElectionTimeoutMillis);
// Since the previous primary's ID is 0, we directly assert that 0 is stored in the
// priorPrimaryMemberId field.
-assert.eq(newPrimaryElectionCandidateMetrics.priorPrimaryMemberId, 0);
+// TODO (SERVER-45274): Re-enable this assertion.
+// assert.eq(newPrimaryElectionCandidateMetrics.priorPrimaryMemberId, 0);
let newPrimaryElectionParticipantMetrics = newPrimaryReplSetGetStatus.electionParticipantMetrics;
@@ -182,7 +183,8 @@ assert.eq(originalPrimaryElectionCandidateMetrics.numVotesNeeded, 2);
assert.eq(originalPrimaryElectionCandidateMetrics.priorityAtElection, 1);
assert.eq(originalPrimaryElectionCandidateMetrics.electionTimeoutMillis,
expectedElectionTimeoutMillis);
-assert.eq(originalPrimaryElectionCandidateMetrics.priorPrimaryMemberId, 1);
+// TODO (SERVER-45274): Re-enable this assertion.
+// assert.eq(originalPrimaryElectionCandidateMetrics.priorPrimaryMemberId, 1);
newPrimaryReplSetGetStatus = assert.commandWorked(newPrimary.adminCommand({replSetGetStatus: 1}));
newPrimaryElectionCandidateMetrics = newPrimaryReplSetGetStatus.electionCandidateMetrics;