summaryrefslogtreecommitdiff
path: root/jstests/core/list_collections_filter.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/list_collections_filter.js')
-rw-r--r--jstests/core/list_collections_filter.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/jstests/core/list_collections_filter.js b/jstests/core/list_collections_filter.js
index 76feeb9dd4b..ef162642bdf 100644
--- a/jstests/core/list_collections_filter.js
+++ b/jstests/core/list_collections_filter.js
@@ -24,16 +24,12 @@
function stripToName(result) {
return result.name;
}
- function isNotSystemIndexes(result) {
- return result !== "system.indexes";
- }
- var cursorResultNames = cursor.toArray().map(stripToName).filter(isNotSystemIndexes);
+ var cursorResultNames = cursor.toArray().map(stripToName);
assert.eq(cursorResultNames.sort(), expectedNames.sort());
// Assert the shell helper returns the same list, but in sorted order.
- var shellResultNames =
- mydb.getCollectionInfos(filter).map(stripToName).filter(isNotSystemIndexes);
+ var shellResultNames = mydb.getCollectionInfos(filter).map(stripToName);
assert.eq(shellResultNames, expectedNames.sort());
}