summaryrefslogtreecommitdiff
path: root/jstests/replsets/read_after_optime.js
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2020-02-17 22:40:59 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-02-18 04:03:33 +0000
commit811b695a37c8c1469b4f6475e62c9a6680b3d95f (patch)
tree37eba8845a07d2904bc6ca292a1ea31475a1168a /jstests/replsets/read_after_optime.js
parent95c8fc6a4a98f70b07f32565e3ef3e48172efa1e (diff)
downloadmongo-811b695a37c8c1469b4f6475e62c9a6680b3d95f.tar.gz
SERVER-46026 Fix tests reliant on specific log lines
Diffstat (limited to 'jstests/replsets/read_after_optime.js')
-rw-r--r--jstests/replsets/read_after_optime.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/jstests/replsets/read_after_optime.js b/jstests/replsets/read_after_optime.js
index 63b049414f6..5759ac824b0 100644
--- a/jstests/replsets/read_after_optime.js
+++ b/jstests/replsets/read_after_optime.js
@@ -1,4 +1,5 @@
// Test read after opTime functionality with maxTimeMS.
+load("jstests/libs/logv2_helpers.js");
(function() {
"use strict";
@@ -38,6 +39,13 @@ var runTest = function(testDB, primaryConn) {
var msg = 'Command on database ' + testDB.getName() +
' timed out waiting for read concern to be satisfied. Command:';
+
+ if (isJsonLogNoConn()) {
+ msg = new RegExp(
+ `Command on database {request_getDatabase} timed out waiting for read concern to be satisfied. Command:.*"attr":{"request_getDatabase":"${
+ testDB.getName()}",.*`);
+ }
+
checkLog.containsWithCount(testDB.getMongo(), msg, 1);
// Read concern timed out message should not be logged.