summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/change_stream_unwind_batched_writes.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/change_stream_unwind_batched_writes.js')
-rw-r--r--jstests/noPassthrough/change_stream_unwind_batched_writes.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/noPassthrough/change_stream_unwind_batched_writes.js b/jstests/noPassthrough/change_stream_unwind_batched_writes.js
index bfd9f5b577c..0ee89a2b09b 100644
--- a/jstests/noPassthrough/change_stream_unwind_batched_writes.js
+++ b/jstests/noPassthrough/change_stream_unwind_batched_writes.js
@@ -63,8 +63,8 @@ function runTest(conn) {
db.adminCommand({setParameter: 1, batchedDeletesTargetBatchDocs: docsPerBatch}));
// Populate the collection, then open a change stream, then mass-delete the collection.
- assert.commandWorked(
- coll.insertMany([...Array(totalNumDocs).keys()].map(x => ({_id: x, txt: "a" + x}))));
+ assert.commandWorked(coll.insertMany(
+ [...Array(totalNumDocs).keys()].map(x => ({_id: x, txt: "a" + x})), {ordered: false}));
const changeStreamCursor = coll.watch();
const serverStatusBatchesBefore = db.serverStatus()['batchedDeletes']['batches'];
const serverStatusDocsBefore = db.serverStatus()['batchedDeletes']['docs'];