summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/count_command_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/count_command_test.cpp')
-rw-r--r--src/mongo/db/query/count_command_test.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/mongo/db/query/count_command_test.cpp b/src/mongo/db/query/count_command_test.cpp
index b7ea431f678..ca1bde54ee0 100644
--- a/src/mongo/db/query/count_command_test.cpp
+++ b/src/mongo/db/query/count_command_test.cpp
@@ -246,28 +246,6 @@ TEST(CountCommandTest, ConvertToAggregationWithQueryOptions) {
SimpleBSONObjComparator::kInstance.makeEqualTo()));
}
-TEST(CountCommandTest, ConvertToAggregationWithComment) {
- auto countCmd = CountCommand::parse(ctxt,
- BSON("count"
- << "TestColl"
- << "$db"
- << "TestDB"
- << "comment"
- << "aComment"));
- auto agg = uassertStatusOK(countCommandAsAggregationCommand(countCmd, testns));
-
- auto ar = uassertStatusOK(AggregationRequest::parseFromBSON(testns, agg));
- ASSERT_EQ(ar.getComment(), "aComment");
-
- std::vector<BSONObj> expectedPipeline{BSON("$count"
- << "count")};
- ASSERT(std::equal(expectedPipeline.begin(),
- expectedPipeline.end(),
- ar.getPipeline().begin(),
- ar.getPipeline().end(),
- SimpleBSONObjComparator::kInstance.makeEqualTo()));
-}
-
TEST(CountCommandTest, ConvertToAggregationWithReadConcern) {
auto countCmd = CountCommand::parse(ctxt,
BSON("count"