|
Few index passthrough tests need to check the number of indexes of a collection. They are excluded from the sharded passthrough suites because sharded collections have an extra index on the shardKey.
Instead of excluding them, we can adapt these tests to expect an extra index checking the method FixtureHelper.isSharded(coll) (like list_catalog.js is already doing).
Here is the list of the tests affected by this:
- jstests/core/**/apitest_dbcollection.js
- jstests/core/**/bad_index_plugin.js
- jstests/core/**/create_indexes.js
- jstests/core/**/list_indexes_non_existent_ns.js
- jstests/core/**/mr_preserve_indexes.js
|