diff options
author | Eric Cox <eric.cox@mongodb.com> | 2021-06-04 14:32:48 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-06-04 15:02:56 +0000 |
commit | 99a8cd98824e8715ea04491ca1d5e6afd34456a9 (patch) | |
tree | 0a83a1ccc982fafc43bf9f19f34d64c6fadab194 /jstests/aggregation | |
parent | a8c2848a44540b989d6f52c504f261aadf0c375f (diff) | |
download | mongo-99a8cd98824e8715ea04491ca1d5e6afd34456a9.tar.gz |
Revert "SERVER-56265 Cleanly fail unsupported queries on timeseries collections"
This reverts commit 7e0bc86f525d56dedca7d8bf9c858d5a8b49fae1.
Diffstat (limited to 'jstests/aggregation')
-rw-r--r-- | jstests/aggregation/bugs/server6530.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/aggregation/bugs/server6530.js b/jstests/aggregation/bugs/server6530.js index b7f4ccc94a2..8b0c914648a 100644 --- a/jstests/aggregation/bugs/server6530.js +++ b/jstests/aggregation/bugs/server6530.js @@ -32,7 +32,7 @@ assert.eq(1, coll.find(nearSphereQuery).count()); assert.eq(1, coll.find(geoNearQuery).count()); // Test that we refuse to run $match with a near query. -assertErrorCode(coll, {$match: nearQuery}, 5626500); -assertErrorCode(coll, {$match: nearSphereQuery}, 5626500); -assertErrorCode(coll, {$match: geoNearQuery}, 5626500); +assertErrorCode(coll, {$match: nearQuery}, ErrorCodes.BadValue); +assertErrorCode(coll, {$match: nearSphereQuery}, ErrorCodes.BadValue); +assertErrorCode(coll, {$match: geoNearQuery}, ErrorCodes.BadValue); }()); |