diff options
-rw-r--r-- | src/mongo/shell/assert.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/shell/assert.js b/src/mongo/shell/assert.js index 2c34209c2fa..eb77b39ab0b 100644 --- a/src/mongo/shell/assert.js +++ b/src/mongo/shell/assert.js @@ -324,14 +324,14 @@ assert = (function() { var start = new Date(); - if (TestData.inEvergreen) { + if (TestData && TestData.inEvergreen) { timeout = timeout || 10 * 60 * 1000; } else { timeout = timeout || 60 * 1000; } interval = interval || 200; - var last; + while (1) { if (typeof (func) == "string") { if (eval(func)) |