diff options
Diffstat (limited to 'jstests/noPassthrough/apply_ops_mode.js')
-rw-r--r-- | jstests/noPassthrough/apply_ops_mode.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/noPassthrough/apply_ops_mode.js b/jstests/noPassthrough/apply_ops_mode.js index 385cf0d532b..2376ed1c30f 100644 --- a/jstests/noPassthrough/apply_ops_mode.js +++ b/jstests/noPassthrough/apply_ops_mode.js @@ -13,7 +13,7 @@ var db = standalone.getDB("test"); var coll = db.getCollection("apply_ops_mode1"); coll.drop(); -assert.writeOK(coll.insert({_id: 1})); +assert.commandWorked(coll.insert({_id: 1})); // ------------ Testing normal updates --------------- @@ -42,7 +42,7 @@ assert.eq(coll.count({x: 1}), 1); coll = db.getCollection("apply_ops_mode2"); coll.drop(); updateOp.ns = coll.getFullName(); -assert.writeOK(coll.insert({_id: 1})); +assert.commandWorked(coll.insert({_id: 1})); // Test default succeeds in 'InitialSync' mode. assert.commandWorked(db.adminCommand({applyOps: [updateOp], oplogApplicationMode: "InitialSync"})); |