summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2010-09-03 13:16:25 -0400
committerMathias Stearn <mathias@10gen.com>2010-09-03 13:28:10 -0400
commitb5e57bae310b4f097fcb4c7230cbe3de42477dab (patch)
tree5df366effb8fd3ee040cefb55c0eeb9500363535
parentd1efe8cafc2db880e7e6beee36633d467eb7f7d9 (diff)
downloadmongo-b5e57bae310b4f097fcb4c7230cbe3de42477dab.tar.gz
Limit generated points to [-179.9, 179.9] due to SERVER-1720
-rw-r--r--jstests/libs/geo_near_random.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/libs/geo_near_random.js b/jstests/libs/geo_near_random.js
index e1b80b72f13..c0d68f40676 100644
--- a/jstests/libs/geo_near_random.js
+++ b/jstests/libs/geo_near_random.js
@@ -13,7 +13,7 @@ GeoNearRandomTest = function(name) {
GeoNearRandomTest.prototype.mkPt = function mkPt(scale){
scale = scale || 1; // scale is good for staying away from edges
- return [((Random.rand() * 360) - 180) * scale, ((Random.rand() * 180) - 90) * scale];
+ return [((Random.rand() * 359.8) - 179.9) * scale, ((Random.rand() * 180) - 90) * scale];
}
GeoNearRandomTest.prototype.insertPts = function(nPts) {