diff options
author | Mathias Stearn <mathias@10gen.com> | 2017-03-31 13:19:52 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2017-04-12 16:00:07 -0400 |
commit | 731790d836e22babbd953c68acbe36cdd97694e8 (patch) | |
tree | 5263fd9fdcb22998b9daf4377b4f49ebcb01a049 /src/mongo/db/pipeline/aggregation_request_test.cpp | |
parent | 1db2940cbc397b3fd8b5250024b85ffa175cccd8 (diff) | |
download | mongo-731790d836e22babbd953c68acbe36cdd97694e8.tar.gz |
SERVER-28507 Centralize ignored fields in command implementations
Diffstat (limited to 'src/mongo/db/pipeline/aggregation_request_test.cpp')
-rw-r--r-- | src/mongo/db/pipeline/aggregation_request_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/aggregation_request_test.cpp b/src/mongo/db/pipeline/aggregation_request_test.cpp index ba036c71bf4..cb68a8af79d 100644 --- a/src/mongo/db/pipeline/aggregation_request_test.cpp +++ b/src/mongo/db/pipeline/aggregation_request_test.cpp @@ -368,10 +368,10 @@ TEST(AggregationRequestTest, ShouldRejectExplainExecStatsVerbosityWithWriteConce // Ignore fields parsed elsewhere. // -TEST(AggregationRequestTest, ShouldIgnoreFieldsPrefixedWithDollar) { +TEST(AggregationRequestTest, ShouldIgnoreQueryOptions) { NamespaceString nss("a.collection"); const BSONObj inputBson = - fromjson("{pipeline: [{$match: {a: 'abc'}}], cursor: {}, $unknown: 1}"); + fromjson("{pipeline: [{$match: {a: 'abc'}}], cursor: {}, $queryOptions: {}}"); ASSERT_OK(AggregationRequest::parseFromBSON(nss, inputBson).getStatus()); } |