summaryrefslogtreecommitdiff
path: root/jstests/libs
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2012-05-30 21:04:13 -0400
committerMathias Stearn <mathias@10gen.com>2012-06-01 19:25:03 -0400
commit86b5b89c2785f3f45ad2674f48fe3189c137904c (patch)
tree5acfe1e9852de877dcb94afaf16c6c655ee3753c /jstests/libs
parentca02fab3d15f1075235cf80d271e8a2c77bf1217 (diff)
downloadmongo-86b5b89c2785f3f45ad2674f48fe3189c137904c.tar.gz
Support geo indexing with points equal to max (+180 by default) SERVER-4027
Diffstat (limited to 'jstests/libs')
-rw-r--r--jstests/libs/geo_near_random.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/libs/geo_near_random.js b/jstests/libs/geo_near_random.js
index adf4f8637db..60cb7733f5d 100644
--- a/jstests/libs/geo_near_random.js
+++ b/jstests/libs/geo_near_random.js
@@ -25,12 +25,12 @@ GeoNearRandomTest.prototype.mkPt = function mkPt(scale, indexBounds){
}
-GeoNearRandomTest.prototype.insertPts = function(nPts, indexBounds) {
+GeoNearRandomTest.prototype.insertPts = function(nPts, indexBounds, scale) {
assert.eq(this.nPts, 0, "insertPoints already called");
this.nPts = nPts;
for (var i=0; i<nPts; i++){
- this.t.insert({_id: i, loc: this.mkPt(undefined, indexBounds)});
+ this.t.insert({_id: i, loc: this.mkPt(scale, indexBounds)});
}
if(!indexBounds)