summaryrefslogtreecommitdiff
path: root/jstests/libs/check_log.js
diff options
context:
space:
mode:
authorA. Jesse Jiryu Davis <jesse@mongodb.com>2018-12-14 22:24:49 -0500
committerA. Jesse Jiryu Davis <jesse@mongodb.com>2018-12-17 13:04:53 -0500
commit105acca0d443f9a47c1a5bd608fd7133840a58dd (patch)
tree5a8d739386d7e4502ff4314c4bcae3cd32bbf408 /jstests/libs/check_log.js
parentb552f4281de9d9127b97aed613fadd0a697ac244 (diff)
downloadmongo-105acca0d443f9a47c1a5bd608fd7133840a58dd.tar.gz
SERVER-38425 Use oplogReplay for oplog visibility queryr3.2.22-rc0r3.2.22
Diffstat (limited to 'jstests/libs/check_log.js')
-rw-r--r--jstests/libs/check_log.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/libs/check_log.js b/jstests/libs/check_log.js
index edfd8b1d5cf..23b9b91b227 100644
--- a/jstests/libs/check_log.js
+++ b/jstests/libs/check_log.js
@@ -29,7 +29,7 @@ var checkLog;
* the provided 'msg' is found in the logs, or 5 minutes have elapsed. Throws an exception
* on timeout.
*/
- var contains = function(conn, msg) {
+ var contains = function(conn, msg, timeoutSeconds = 5 * 60) {
assert.soon(
function() {
var logMessages = getGlobalLog(conn);
@@ -44,7 +44,7 @@ var checkLog;
return false;
},
'Could not find log entries containing the following message: ' + msg,
- 5 * 60 * 1000,
+ timeoutSeconds * 1000,
300);
};