Skip to content

Commit 94a5f24

Browse files
committed
fix: prose test
1 parent b766cc3 commit 94a5f24

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/operations/client_bulk_write/results_merger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
* Unacknowledged bulk writes are always the same.
1616
*/
1717
const UNACKNOWLEDGED = {
18-
acknowledged: true,
18+
acknowledged: false,
1919
insertedCount: 0,
2020
upsertedCount: 0,
2121
matchedCount: 0,

test/integration/crud/crud.prose.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,7 @@ describe('CRUD Prose Spec Tests', () => {
11551155
metadata: { requires: { mongodb: '>=8.0.0', serverless: 'forbid' } },
11561156
async test() {
11571157
const result = await client.bulkWrite(models, { ordered: false, writeConcern: { w: 0 } });
1158-
expect(result).to.deep.equal({ ok: 1 });
1158+
expect(result.acknowledged).to.be.false;
11591159
expect(commands.length).to.equal(2);
11601160
expect(commands[0].command.ops.length).to.equal(numModels - 1);
11611161
expect(commands[0].command.writeConcern.w).to.equal(0);

0 commit comments

Comments
 (0)