summaryrefslogtreecommitdiff
path: root/jstests/core/splitvector.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/splitvector.js')
-rw-r--r--jstests/core/splitvector.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/splitvector.js b/jstests/core/splitvector.js
index f30d2fdc386..62a89f3027f 100644
--- a/jstests/core/splitvector.js
+++ b/jstests/core/splitvector.js
@@ -73,7 +73,7 @@ let bulkInsertDocs = function(coll, numDocs, filler) {
for (let i = 1; i <= numDocs; i++) {
bulk.insert({x: i, y: filler});
}
- assert.writeOK(bulk.execute());
+ assert.commandWorked(bulk.execute());
};
// Inserts numDocs into the given collection using a bulk operation. Each document's x value is set
@@ -83,7 +83,7 @@ let bulkInsertDocsFixedX = function(coll, numDocs, filler, xVal) {
for (let i = 1; i <= numDocs; i++) {
bulk.insert({x: xVal, y: filler});
}
- assert.writeOK(bulk.execute());
+ assert.commandWorked(bulk.execute());
};
// -------------------------