Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

SERVER-4148 handle newly reported count assertions in test

  • Loading branch information...
commit 2465c2a4849426a920058112cd69184d657a0ba7 1 parent 46d49e3
@astaple astaple authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 jstests/geo_oob_sphere.js
View
6 jstests/geo_oob_sphere.js
@@ -16,17 +16,17 @@ t.insert({ loc : { x : 30, y : 91 } })
t.ensureIndex({ loc : "2d" })
assert.isnull( db.getLastError() )
-t.find({ loc : { $nearSphere : [ 30, 91 ], $maxDistance : 0.25 } }).count()
+assert.throws( function() { t.find({ loc : { $nearSphere : [ 30, 91 ], $maxDistance : 0.25 } }).count() } );
var err = db.getLastError()
assert( err != null )
printjson( err )
-t.find({ loc : { $nearSphere : [ 30, 89 ], $maxDistance : 0.25 } }).count()
+assert.throws( function() { t.find({ loc : { $nearSphere : [ 30, 89 ], $maxDistance : 0.25 } }).count() } );
var err = db.getLastError()
assert( err != null )
printjson( err )
-t.find({ loc : { $within : { $centerSphere : [[ -180, -91 ], 0.25] } } }).count()
+assert.throws( function() { t.find({ loc : { $within : { $centerSphere : [[ -180, -91 ], 0.25] } } }).count() } );
var err = db.getLastError()
assert( err != null )
printjson( err )
Please sign in to comment.
Something went wrong with that request. Please try again.