summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgregs <greg@10gen.com>2011-09-06 17:51:06 -0400
committergregs <greg@10gen.com>2011-09-06 17:51:06 -0400
commit41f0781429225f979cdd2b19e09ca696729860f5 (patch)
treed588cdc33903b6a5edc60d4d7745ab7edb846a15
parent333e0276374e229764277053ea4be6b92c6fe3ed (diff)
downloadmongo-41f0781429225f979cdd2b19e09ca696729860f5.tar.gz
triangle test can't assume diagonal points SERVER-3725
-rw-r--r--jstests/slowNightly/geo_polygon.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/slowNightly/geo_polygon.js b/jstests/slowNightly/geo_polygon.js
index a6324d7d5ab..25bf0269ccc 100644
--- a/jstests/slowNightly/geo_polygon.js
+++ b/jstests/slowNightly/geo_polygon.js
@@ -27,7 +27,7 @@ if ( shouldRun ) {
t.dropIndexes()
t.ensureIndex( { loc : "2d" }, { bits : 2 + n } );
- assert.eq( 9 , t.find( { loc: { "$within": { "$polygon" : [[0,0], [1,1], [0,2]] }}} ).count() , "Triangle Test" );
+ assert.between( 9 - 2 , t.find( { loc: { "$within": { "$polygon" : [[0,0], [1,1], [0,2]] }}} ).count() , 9, "Triangle Test", true);
assert.eq( num , t.find( { loc : { "$within" : { "$polygon" : [ [-180,-180], [-180,180], [180,180], [180,-180] ] } } } ).count() , "Bounding Box Test" );
assert.eq( 441 , t.find( { loc : { "$within" : { "$polygon" : [ [0,0], [0,10], [10,10], [10,0] ] } } } ).count() , "Square Test" );