diff options
Diffstat (limited to 'jstests/aggregation/sources/geonear/collation_geonear.js')
-rw-r--r-- | jstests/aggregation/sources/geonear/collation_geonear.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/aggregation/sources/geonear/collation_geonear.js b/jstests/aggregation/sources/geonear/collation_geonear.js index d4c47c1aec0..5fb756c64da 100644 --- a/jstests/aggregation/sources/geonear/collation_geonear.js +++ b/jstests/aggregation/sources/geonear/collation_geonear.js @@ -12,7 +12,7 @@ const caseInsensitive = { var coll = db.collation_geonear; coll.drop(); assert.commandWorked(coll.createIndex({loc: "2dsphere"})); -assert.writeOK(coll.insert({loc: [0, 0], str: "A"})); +assert.commandWorked(coll.insert({loc: [0, 0], str: "A"})); // Test that the $geoNear agg stage respects an explicit collation. assert.eq(0, @@ -54,7 +54,7 @@ assert.throws(function() { coll.drop(); assert.commandWorked(db.createCollection(coll.getName(), caseInsensitive)); assert.commandWorked(coll.createIndex({loc: "2dsphere"})); -assert.writeOK(coll.insert({loc: [0, 0], str: "A"})); +assert.commandWorked(coll.insert({loc: [0, 0], str: "A"})); // Test that the $geoNear agg stage respects an inherited collation. assert.eq(1, |