diff options
Diffstat (limited to 'jstests/sharding/all_collection_stats.js')
-rw-r--r-- | jstests/sharding/all_collection_stats.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/sharding/all_collection_stats.js b/jstests/sharding/all_collection_stats.js index ac0207bda7b..62a725719cf 100644 --- a/jstests/sharding/all_collection_stats.js +++ b/jstests/sharding/all_collection_stats.js @@ -175,6 +175,10 @@ for (let i = numCollections / 2; i < numCollections; i++) { checkResults(outputData, checksToDo); })(); +// Test valid query with empty specification +assert.commandWorked( + adminDb.runCommand({aggregate: 1, pipeline: [{$_internalAllCollectionStats: {}}], cursor: {}})); + // Test invalid queries/values. assert.commandFailedWithCode( adminDb.runCommand({aggregate: 1, pipeline: [{$_internalAllCollectionStats: 3}], cursor: {}}), |