summaryrefslogtreecommitdiff
path: root/jstests/replsets/catchup.js
diff options
context:
space:
mode:
authorTess Avitabile <tess.avitabile@mongodb.com>2020-03-12 16:12:49 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-17 19:07:37 +0000
commit759af0dcb8dd4e13fdcdb8a77907b6dabaf7101e (patch)
tree481ca2fbcabd4af0fb6b95a2882b6ed1f827071c /jstests/replsets/catchup.js
parentf1bb6bdcb18560f829339d750581e36e71b8f4d2 (diff)
downloadmongo-759af0dcb8dd4e13fdcdb8a77907b6dabaf7101e.tar.gz
SERVER-46389 Improve replication log line style
Diffstat (limited to 'jstests/replsets/catchup.js')
-rw-r--r--jstests/replsets/catchup.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/jstests/replsets/catchup.js b/jstests/replsets/catchup.js
index 65ca71a8bbd..7425fa0b52e 100644
--- a/jstests/replsets/catchup.js
+++ b/jstests/replsets/catchup.js
@@ -3,6 +3,7 @@
(function() {
"use strict";
+load("jstests/libs/logv2_helpers.js");
load("jstests/libs/write_concern_util.js");
load("jstests/replsets/libs/election_metrics.js");
load("jstests/replsets/rslib.js");
@@ -116,7 +117,11 @@ restartServerReplication(stepUpResults.oldSecondaries);
assert.eq(stepUpResults.newPrimary, rst.getPrimary());
// Wait until the new primary completes the transition to primary and writes a no-op.
-checkLog.contains(stepUpResults.newPrimary, "transition to primary complete");
+if (isJsonLog(stepUpResults.newPrimary)) {
+ checkLog.contains(stepUpResults.newPrimary, "Transition to primary complete");
+} else {
+ checkLog.contains(stepUpResults.newPrimary, "transition to primary complete");
+}
// Check that the new primary's term has been updated because of the no-op.
assert.eq(getLatestOp(stepUpResults.newPrimary).t, stepUpResults.latestOpOnNewPrimary.t + 1);