diff options
Diffstat (limited to 'jstests/core/update_multi5.js')
-rw-r--r-- | jstests/core/update_multi5.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/jstests/core/update_multi5.js b/jstests/core/update_multi5.js index 8f797d8de2f..c8823ef1904 100644 --- a/jstests/core/update_multi5.js +++ b/jstests/core/update_multi5.js @@ -6,10 +6,11 @@ var t = db.update_multi5; t.drop(); -assert.writeOK(t.insert({path: 'r1', subscribers: [1, 2]})); -assert.writeOK(t.insert({path: 'r2', subscribers: [3, 4]})); +assert.commandWorked(t.insert({path: 'r1', subscribers: [1, 2]})); +assert.commandWorked(t.insert({path: 'r2', subscribers: [3, 4]})); -var res = assert.writeOK(t.update({}, {$addToSet: {subscribers: 5}}, {upsert: false, multi: true})); +var res = + assert.commandWorked(t.update({}, {$addToSet: {subscribers: 5}}, {upsert: false, multi: true})); assert.eq(res.nMatched, 2, tojson(res)); |