summaryrefslogtreecommitdiff
path: root/src/mongo/shell/assert.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/shell/assert.js')
-rw-r--r--src/mongo/shell/assert.js16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/mongo/shell/assert.js b/src/mongo/shell/assert.js
index 07bf0c31bfd..2c34209c2fa 100644
--- a/src/mongo/shell/assert.js
+++ b/src/mongo/shell/assert.js
@@ -323,7 +323,13 @@ assert = (function() {
}
var start = new Date();
- timeout = timeout || 5 * 60 * 1000;
+
+ if (TestData.inEvergreen) {
+ timeout = timeout || 10 * 60 * 1000;
+ } else {
+ timeout = timeout || 60 * 1000;
+ }
+
interval = interval || 200;
var last;
while (1) {
@@ -340,10 +346,10 @@ assert = (function() {
msg = _buildAssertionMessage(msg, msgPrefix);
if (runHangAnalyzer) {
msg = msg +
- "The hang analyzer is automatically called in assert.soon functions. " +
- "If you are *expecting* assert.soon to possibly fail, call assert.soon " +
- "with {runHangAnalyzer: false} as the fifth argument " +
- "(you can fill unused arguments with `undefined`).";
+ " The hang analyzer is automatically called in assert.soon functions." +
+ " If you are *expecting* assert.soon to possibly fail, call assert.soon" +
+ " with {runHangAnalyzer: false} as the fifth argument" +
+ " (you can fill unused arguments with `undefined`).";
print(msg + " Running hang analyzer from assert.soon.");
MongoRunner.runHangAnalyzer();
}