diff options
Diffstat (limited to 'jstests/core/remove_undefined.js')
-rw-r--r-- | jstests/core/remove_undefined.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/core/remove_undefined.js b/jstests/core/remove_undefined.js index 6b97cc5d053..11463c107c5 100644 --- a/jstests/core/remove_undefined.js +++ b/jstests/core/remove_undefined.js @@ -6,9 +6,9 @@ const coll = db.remove_undefined; coll.drop(); -assert.writeOK(coll.insert({_id: 1})); -assert.writeOK(coll.insert({_id: 2})); -assert.writeOK(coll.insert({_id: null})); +assert.commandWorked(coll.insert({_id: 1})); +assert.commandWorked(coll.insert({_id: 2})); +assert.commandWorked(coll.insert({_id: null})); const obj = { foo: 1, @@ -27,7 +27,7 @@ assert.writeErrorWithCode(coll.remove({_id: undefined}), ErrorCodes.BadValue); coll.remove({_id: obj.nullElem}); assert.eq(2, coll.count()); -assert.writeOK(coll.insert({_id: null})); +assert.commandWorked(coll.insert({_id: null})); assert.eq(3, coll.count()); assert.writeErrorWithCode(coll.remove({_id: undefined}), ErrorCodes.BadValue); |