From b5e57bae310b4f097fcb4c7230cbe3de42477dab Mon Sep 17 00:00:00 2001 From: Mathias Stearn Date: Fri, 3 Sep 2010 13:16:25 -0400 Subject: [PATCH] Limit generated points to [-179.9, 179.9] due to SERVER-1720 --- jstests/libs/geo_near_random.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {