diff options
author | Tommaso Tocci <tommaso.tocci@mongodb.com> | 2022-10-27 11:51:11 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-10-27 12:20:26 +0000 |
commit | 4e28648767281cd2fcf3ced7a68d57e295645d56 (patch) | |
tree | 20f095f2bac95b5bc1555aec25737cc82912fc53 /jstests/noPassthroughWithMongod/stress_test_unique_index_unique.js | |
parent | 1281ab11f40eeda824c24f5088294682fe880507 (diff) | |
download | mongo-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.js | 2 |
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; } } |