summaryrefslogtreecommitdiff
path: root/jstests
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-15 12:05:18 -0500
commit9fef93aed46338be9bcf6f4803906c36bc48b2ce (patch)
tree27d86c26ee696b93a52e8f1ff9a92e133baf4e0c /jstests
parent40d8548209240eab78112de265200c48cd7699c4 (diff)
downloadmongo-9fef93aed46338be9bcf6f4803906c36bc48b2ce.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
(cherry picked from commit be38d61492a125883dbdc111f331661a24b09e35)
Diffstat (limited to 'jstests')
-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 d1eb9392d60..70f3ea48372 100644
--- a/jstests/core/max_time_ms.js
+++ b/jstests/core/max_time_ms.js
@@ -18,11 +18,12 @@ var res;
var error;
//
-// 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.commandWorked(t.insert(Array.from({length: 1000}, _ => ({}))));
+
cursor = t.find({
$where: function() {
sleep(100);