summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/indexbg2.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/indexbg2.js')
-rw-r--r--jstests/noPassthrough/indexbg2.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/noPassthrough/indexbg2.js b/jstests/noPassthrough/indexbg2.js
index c7a119048ec..ec873eccf7e 100644
--- a/jstests/noPassthrough/indexbg2.js
+++ b/jstests/noPassthrough/indexbg2.js
@@ -58,7 +58,7 @@ let turnFailPointOff = function(failPointName) {
// for the duration of the build.
let failOnExistingDuplicateValue = function(coll) {
let duplicateKey = 0;
- assert.writeOK(coll.save({i: duplicateKey}));
+ assert.commandWorked(coll.save({i: duplicateKey}));
let bgIndexBuildPid = indexBuild();
waitProgram(bgIndexBuildPid);
@@ -81,7 +81,7 @@ let failOnInsertedDuplicateValue = function(coll) {
jsTestLog("Waiting to hang before index build of i=" + duplicateKey);
checkLog.contains(conn, "Hanging before index build of i=" + duplicateKey);
- assert.writeOK(coll.save({i: duplicateKey}));
+ assert.commandWorked(coll.save({i: duplicateKey}));
} finally {
turnFailPointOff("hangBeforeIndexBuildOf");
}
@@ -135,7 +135,7 @@ let doTest = function() {
coll.drop();
for (let i = 0; i < size; ++i) {
- assert.writeOK(coll.save({i: i}));
+ assert.commandWorked(coll.save({i: i}));
}
assert.eq(size, coll.count());
assert.eq(1, coll.getIndexes().length, "_id index should already exist");