diff options
Diffstat (limited to 'jstests/aggregation/expressions/arrayToObject.js')
-rw-r--r-- | jstests/aggregation/expressions/arrayToObject.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/aggregation/expressions/arrayToObject.js b/jstests/aggregation/expressions/arrayToObject.js index df78b9f1aaf..409bd8aee1f 100644 --- a/jstests/aggregation/expressions/arrayToObject.js +++ b/jstests/aggregation/expressions/arrayToObject.js @@ -9,7 +9,7 @@ let coll = db.array_to_object_expr; coll.drop(); // Write one document so that the aggregations which use $const produce a result. -assert.writeOK(coll.insert({_id: "sentinel", a: 1})); +assert.commandWorked(coll.insert({_id: "sentinel", a: 1})); /* * Check that the collapsed, object form of 'expanded' (which is computed using $arrayToObject) |