diff options
Diffstat (limited to 'jstests/aggregation/bugs/server6530.js')
-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); }()); |