summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod/stress_test_unique_index_unique.js
diff options
context:
space:
mode:
authorTommaso Tocci <tommaso.tocci@mongodb.com>2022-10-27 11:51:11 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-10-27 12:20:26 +0000
commit4e28648767281cd2fcf3ced7a68d57e295645d56 (patch)
tree20f095f2bac95b5bc1555aec25737cc82912fc53 /jstests/noPassthroughWithMongod/stress_test_unique_index_unique.js
parent1281ab11f40eeda824c24f5088294682fe880507 (diff)
downloadmongo-4e28648767281cd2fcf3ced7a68d57e295645d56.tar.gz
SERVER-68782 speedup batched multi delete tests
Diffstat (limited to 'jstests/noPassthroughWithMongod/stress_test_unique_index_unique.js')
-rw-r--r--jstests/noPassthroughWithMongod/stress_test_unique_index_unique.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/noPassthroughWithMongod/stress_test_unique_index_unique.js b/jstests/noPassthroughWithMongod/stress_test_unique_index_unique.js
index 3b1775a1a8a..85e66feafca 100644
--- a/jstests/noPassthroughWithMongod/stress_test_unique_index_unique.js
+++ b/jstests/noPassthroughWithMongod/stress_test_unique_index_unique.js
@@ -19,7 +19,7 @@ function loadCollectionWithDocs(collection, numDocs) {
for (let i = 0; i < kMaxChunkSize && inserted + docs.length < numDocs; i++) {
docs.push({"a": inserted + i});
}
- collection.insertMany(docs);
+ assert.commandWorked(collection.insertMany(docs, {ordered: false}));
inserted += docs.length;
}
}