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-01 10:01:44 -0500
commit161446183ef54319533aefeb2540556c72d0cb16 (patch)
treed73369112583d56b449bca8b206d77e8b604eba9 /jstests
parent5d0940d3f1335d903fa0fef335179fe7c149e16a (diff)
downloadmongo-161446183ef54319533aefeb2540556c72d0cb16.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
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 24e076407eb..da8f11cdcf5 100644
--- a/jstests/core/max_time_ms.js
+++ b/jstests/core/max_time_ms.js
@@ -15,11 +15,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.writeOK(t.insert(Array.from({length: 1000}, _ => ({}))));
+
cursor = t.find({
$where: function() {
sleep(100);