diff options
Diffstat (limited to 'jstests/aggregation/sources/match/collation_match.js')
-rw-r--r-- | jstests/aggregation/sources/match/collation_match.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/aggregation/sources/match/collation_match.js b/jstests/aggregation/sources/match/collation_match.js index 8c8c225f66d..3962db8f52b 100644 --- a/jstests/aggregation/sources/match/collation_match.js +++ b/jstests/aggregation/sources/match/collation_match.js @@ -9,7 +9,7 @@ var caseInsensitive = {collation: {locale: "en_US", strength: 2}}; var coll = db.collation_match; coll.drop(); -assert.writeOK(coll.insert({a: "a"})); +assert.commandWorked(coll.insert({a: "a"})); // Test that the $match respects an explicit collation when it can be pushed down into the query // layer. @@ -28,7 +28,7 @@ assert.eq(1, // Test that when a $match can be split to be part before the $unwind and part after, both // pieces of the split respect the collation. coll.drop(); -assert.writeOK(coll.insert({a: "foo", b: ["bar"]})); +assert.commandWorked(coll.insert({a: "foo", b: ["bar"]})); assert.eq( 1, coll.aggregate([{$limit: 1}, {$unwind: "$b"}, {$match: {a: "FOO", b: "BAR"}}], caseInsensitive) @@ -36,7 +36,7 @@ assert.eq( coll.drop(); assert.commandWorked(db.createCollection(coll.getName(), caseInsensitive)); -assert.writeOK(coll.insert({a: "a"})); +assert.commandWorked(coll.insert({a: "a"})); // Test that the $match respects the inherited collation when it can be pushed down into the // query layer. |