diff options
Diffstat (limited to 'jstests/aggregation/expressions/in.js')
-rw-r--r-- | jstests/aggregation/expressions/in.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/aggregation/expressions/in.js b/jstests/aggregation/expressions/in.js index 63ba02f1b4e..698a6212b42 100644 --- a/jstests/aggregation/expressions/in.js +++ b/jstests/aggregation/expressions/in.js @@ -32,7 +32,7 @@ function testExpressionCollectionCollation(options, collationSpec) { function testExpressionInternal(options) { var pipeline = {$project: {included: {$in: ["$elementField", {$literal: options.array}]}}}; - assert.writeOK(coll.insert({elementField: options.element})); + assert.commandWorked(coll.insert({elementField: options.element})); var res = coll.aggregate(pipeline).toArray(); assert.eq(res.length, 1); assert.eq(res[0].included, options.elementIsIncluded); |