diff options
author | Robert Guo <robert.guo@mongodb.com> | 2020-02-24 07:32:54 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-02-24 13:05:41 +0000 |
commit | d5454069f8ac23e69bb3c828749c20ef5f3ff424 (patch) | |
tree | aefb8cfd1e086e72368fc502162644891dde0fe7 /src/mongo/shell | |
parent | 63d946bd421a22500afc46d1989254b025e1cf79 (diff) | |
download | mongo-d5454069f8ac23e69bb3c828749c20ef5f3ff424.tar.gz |
SERVER-46340 TestData is undefined in DSI
Diffstat (limited to 'src/mongo/shell')
-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)) |