@@ -354,7 +354,7 @@ exports.shouldCorrectlyCreateAndUseSparseIndex = {
354
354
exports . shouldCorrectlyHandleGeospatialIndexes = {
355
355
// Add a tag that our runner can trigger on
356
356
// in this case we are setting that node needs to be higher than 0.10.X to run
357
- metadata : { requires : { mongodb : ">1.9.1 " , topology : [ 'single' , 'replicaset' , 'sharded' , 'ssl' , 'heap' , 'wiredtiger' ] } } ,
357
+ metadata : { requires : { mongodb : ">2.6.0 " , topology : [ 'single' , 'replicaset' , 'sharded' , 'ssl' , 'heap' , 'wiredtiger' ] } } ,
358
358
359
359
// The actual test we wish to run
360
360
test : function ( configuration , test ) {
@@ -367,8 +367,8 @@ exports.shouldCorrectlyHandleGeospatialIndexes = {
367
367
test . equal ( err , null ) ;
368
368
369
369
collection . insert ( { 'loc' : [ 200 , 200 ] } , configuration . writeConcernMax ( ) , function ( err , result ) {
370
- err = err ? err : { } ;
371
-
370
+ console . dir ( err )
371
+ console . dir ( result )
372
372
test . ok ( err . errmsg . indexOf ( "point not in interval of" ) != - 1 ) ;
373
373
test . ok ( err . errmsg . indexOf ( "-180" ) != - 1 ) ;
374
374
test . ok ( err . errmsg . indexOf ( "180" ) != - 1 ) ;
@@ -389,7 +389,7 @@ exports.shouldCorrectlyHandleGeospatialIndexes = {
389
389
exports . shouldCorrectlyHandleGeospatialIndexesAlteredRange = {
390
390
// Add a tag that our runner can trigger on
391
391
// in this case we are setting that node needs to be higher than 0.10.X to run
392
- metadata : { requires : { mongodb : ">1.9.1 " , topology : [ 'single' , 'replicaset' , 'sharded' , 'ssl' , 'heap' , 'wiredtiger' ] } } ,
392
+ metadata : { requires : { mongodb : ">2.6.0 " , topology : [ 'single' , 'replicaset' , 'sharded' , 'ssl' , 'heap' , 'wiredtiger' ] } } ,
393
393
394
394
// The actual test we wish to run
395
395
test : function ( configuration , test ) {
@@ -403,7 +403,6 @@ exports.shouldCorrectlyHandleGeospatialIndexesAlteredRange = {
403
403
collection . insert ( { 'loc' : [ 200 , 200 ] } , configuration . writeConcernMax ( ) , function ( err , result ) {
404
404
test . equal ( err , null ) ;
405
405
collection . insert ( { 'loc' : [ - 200 , - 200 ] } , configuration . writeConcernMax ( ) , function ( err , result ) {
406
- err = err ? err : { } ;
407
406
test . ok ( err . errmsg . indexOf ( "point not in interval of" ) != - 1 ) ;
408
407
test . ok ( err . errmsg . indexOf ( "0" ) != - 1 ) ;
409
408
test . ok ( err . errmsg . indexOf ( "1024" ) != - 1 ) ;
0 commit comments