diff options
Diffstat (limited to 'jstests/aggregation/sources/project/remove_redundant_projects.js')
-rw-r--r-- | jstests/aggregation/sources/project/remove_redundant_projects.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/aggregation/sources/project/remove_redundant_projects.js b/jstests/aggregation/sources/project/remove_redundant_projects.js index f1a21264c7e..e4584df4f65 100644 --- a/jstests/aggregation/sources/project/remove_redundant_projects.js +++ b/jstests/aggregation/sources/project/remove_redundant_projects.js @@ -10,7 +10,7 @@ load('jstests/libs/analyze_plan.js'); // For planHasStage(). let coll = db.remove_redundant_projects; coll.drop(); -assert.writeOK(coll.insert({_id: {a: 1, b: 1}, a: 1, c: {d: 1}, e: ['elem1']})); +assert.commandWorked(coll.insert({_id: {a: 1, b: 1}, a: 1, c: {d: 1}, e: ['elem1']})); let indexSpec = {a: 1, 'c.d': 1, 'e.0': 1}; |