summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvrachev <vlad.rachev@mongodb.com>2019-01-18 13:41:08 -0500
committerNick Zolnierz <nicholas.zolnierz@mongodb.com>2019-02-01 12:16:14 -0500
commit8aab92413fe8852f4c0633e29311b75aae4a076a (patch)
tree80be2f38182ab3d2c20d5c85df946bb68a335d31
parent97fb96739e7a7defee501e57d9ec38a22b94c3b7 (diff)
downloadmongo-8aab92413fe8852f4c0633e29311b75aae4a076a.tar.gz
SERVER-38954: Increase query execution time for the test case in max_time_ms.js that expects it to hit the time limit
-rw-r--r--jstests/core/max_time_ms.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/jstests/core/max_time_ms.js b/jstests/core/max_time_ms.js
index e50e70560f6..73e5ae140cc 100644
--- a/jstests/core/max_time_ms.js
+++ b/jstests/core/max_time_ms.js
@@ -14,11 +14,12 @@ var cursor;
var res;
//
-// Simple positive test for query: a ~300ms query with a 100ms time limit should be aborted.
+// Simple positive test for query: a ~100 second query with a 100ms time limit should be aborted.
//
t.drop();
-t.insert([{}, {}, {}]);
+assert.writeOK(t.insert(Array.from({length: 1000}, _ => ({}))));
+
cursor = t.find({
$where: function() {
sleep(100);