diff options
Diffstat (limited to 'jstests/sharding/query/collation_targeting_inherited.js')
-rw-r--r-- | jstests/sharding/query/collation_targeting_inherited.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/jstests/sharding/query/collation_targeting_inherited.js b/jstests/sharding/query/collation_targeting_inherited.js index 1ae0c4f32f4..74ac599dc62 100644 --- a/jstests/sharding/query/collation_targeting_inherited.js +++ b/jstests/sharding/query/collation_targeting_inherited.js @@ -187,12 +187,10 @@ assert.commandWorked(explain); assert.eq(3, explain.queryPlanner.winningPlan.shards.length); // Test a find command with a simple collation. This should be single-shard. -if (testDB.getMongo().useReadCommands()) { - assert.eq(1, collCaseInsensitive.find({a: "foo"}).collation({locale: "simple"}).itcount()); - explain = collCaseInsensitive.find({a: "foo"}).collation({locale: "simple"}).explain(); - assert.commandWorked(explain); - assert.eq(1, explain.queryPlanner.winningPlan.shards.length); -} +assert.eq(1, collCaseInsensitive.find({a: "foo"}).collation({locale: "simple"}).itcount()); +explain = collCaseInsensitive.find({a: "foo"}).collation({locale: "simple"}).explain(); +assert.commandWorked(explain); +assert.eq(1, explain.queryPlanner.winningPlan.shards.length); // Test a find command on numbers with a non-simple collation inherited from the collection // default. This should be single-shard. |