summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/query_planner_geo_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/query_planner_geo_test.cpp')
-rw-r--r--src/mongo/db/query/query_planner_geo_test.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/db/query/query_planner_geo_test.cpp b/src/mongo/db/query/query_planner_geo_test.cpp
index 90ab9f78a75..65194e28196 100644
--- a/src/mongo/db/query/query_planner_geo_test.cpp
+++ b/src/mongo/db/query/query_planner_geo_test.cpp
@@ -393,11 +393,9 @@ TEST_F(QueryPlannerTest, And2DSphereSameFieldNonNearMultikey) {
" {a: {$geoIntersects: {$geometry: "
"{type: 'Point', coordinates: [4.0, 1.0]}}}}]}"));
- assertNumSolutions(2U);
+ assertNumSolutions(3U);
assertSolutionExists("{cscan: {dir: 1}}");
- // Bounds of the two 2dsphere geo predicates are combined into
- // a single index scan.
- assertSolutionExists("{fetch: {node: {ixscan: {pattern: {a: '2dsphere'}}}}}");
+ assertSolutionExists("{fetch: {node: {ixscan: {pattern: {a: '2dsphere'}}}}}", 2U);
}
TEST_F(QueryPlannerTest, And2DSphereWithNearSameField) {