summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/use_disk.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/use_disk.js')
-rw-r--r--jstests/noPassthrough/use_disk.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/noPassthrough/use_disk.js b/jstests/noPassthrough/use_disk.js
index 0e91fdcdca2..f4323bf3d35 100644
--- a/jstests/noPassthrough/use_disk.js
+++ b/jstests/noPassthrough/use_disk.js
@@ -16,14 +16,14 @@ testDB.setProfilingLevel(2);
function resetCollection() {
coll.drop();
for (var i = 0; i < 10; ++i) {
- assert.writeOK(coll.insert({a: i}));
+ assert.commandWorked(coll.insert({a: i}));
}
}
function resetForeignCollection() {
testDB.foreign.drop();
const forColl = testDB.getCollection("foreign");
for (var i = 4; i < 18; i += 2)
- assert.writeOK(forColl.insert({b: i}));
+ assert.commandWorked(forColl.insert({b: i}));
}
//
// Confirm hasSortStage with in-memory sort.