diff options
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/core/max_time_ms.js | 5 |
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); |