summaryrefslogtreecommitdiff
path: root/jstests/libs/check_log.js
diff options
context:
space:
mode:
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);
};