diff options
Diffstat (limited to 'jstests/aggregation/variables/remove_system_variable.js')
-rw-r--r-- | jstests/aggregation/variables/remove_system_variable.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/aggregation/variables/remove_system_variable.js b/jstests/aggregation/variables/remove_system_variable.js index 5dd0cda9525..2ac85f1e213 100644 --- a/jstests/aggregation/variables/remove_system_variable.js +++ b/jstests/aggregation/variables/remove_system_variable.js @@ -7,9 +7,9 @@ let coll = db[jsTest.name()]; coll.drop(); -assert.writeOK(coll.insert({_id: 1, a: 2, b: 3})); -assert.writeOK(coll.insert({_id: 2, a: 3, b: 4})); -assert.writeOK(coll.insert({_id: 3, a: {b: 98, c: 99}})); +assert.commandWorked(coll.insert({_id: 1, a: 2, b: 3})); +assert.commandWorked(coll.insert({_id: 2, a: 3, b: 4})); +assert.commandWorked(coll.insert({_id: 3, a: {b: 98, c: 99}})); let projectStage = { $project: {_id: 0, a: 1, b: {$cond: {if: {$eq: ["$b", 4]}, then: "$$REMOVE", else: "$b"}}} |