summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorHari Khalsa <hkhalsa@10gen.com>2014-04-21 11:17:47 -0400
committerDan Pasette <dan@mongodb.com>2014-04-21 13:59:02 -0400
commit246bfa4e9c365f585e3dc323f91b72e1dd16d127 (patch)
tree472ce979cdfbbde9e2c6d0307cedd3579a6a188a /jstests
parent66da6ee14e6de327285f76ae73e48a56788ab901 (diff)
downloadmongo-246bfa4e9c365f585e3dc323f91b72e1dd16d127.tar.gz
SERVER-13666 check that lat/lng are in bounds for near queries even if point is legacy
(cherry picked from commit 3286b208b30c43450354422e554070485f526e7b)
Diffstat (limited to 'jstests')
-rw-r--r--jstests/core/geo_s2near.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/core/geo_s2near.js b/jstests/core/geo_s2near.js
index 136e821b4b8..240e10d633a 100644
--- a/jstests/core/geo_s2near.js
+++ b/jstests/core/geo_s2near.js
@@ -82,3 +82,6 @@ testRadAndDegreesOK(1);
testRadAndDegreesOK(10)
testRadAndDegreesOK(50)
testRadAndDegreesOK(10000)
+
+// SERVER-13666 legacy coordinates must be in bounds for spherical near queries.
+assert.commandFailed(db.runCommand({geoNear : t.getName(), near: [1210.466, 31.2051], spherical: true, num: 10}));