|
When we introduced the 2-shards sharded collections passthrough, this assertion was typed in the wrong order:
// If the collection is sharded, we expect at most 2 distinct values per shard. If the
|
// collection is not sharded, we expect 2 returned.
|
assert.lte(2 * FixtureHelpers.numberOfShardsForCollection(coll),
|
explain_distinct_with_query.executionStats.nReturned);
|
That should be flipped:
// If the collection is sharded, we expect at most 2 distinct values per shard. If the
|
// collection is not sharded, we expect 2 returned.
|
assert.lte(explain_distinct_with_query.executionStats.nReturned,
|
2 * FixtureHelpers.numberOfShardsForCollection(coll));
|
|