Skip to content

Commit 5bcf21e

Browse files
update test runner for bulk operations
1 parent 98aad03 commit 5bcf21e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/tools/unified-spec-runner/operations.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,10 @@ operations.set('assertNumberConnectionsCheckedOut', async ({ entities, operation
173173

174174
operations.set('bulkWrite', async ({ entities, operation }) => {
175175
const collection = entities.getEntity('collection', operation.object);
176-
return collection.bulkWrite(operation.arguments.requests);
176+
const operations = operation.arguments.requests;
177+
const options = Object.assign({}, operation.arguments);
178+
delete options.requests;
179+
return collection.bulkWrite(operations, options);
177180
});
178181

179182
// The entity exists for the name but can potentially have the wrong

0 commit comments

Comments
 (0)