diff options
Diffstat (limited to 'jstests/core/geo10.js')
-rw-r--r-- | jstests/core/geo10.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/jstests/core/geo10.js b/jstests/core/geo10.js index e098d4eef11..25bfc7b8ce6 100644 --- a/jstests/core/geo10.js +++ b/jstests/core/geo10.js @@ -4,9 +4,7 @@ coll = db.geo10 coll.drop(); assert.commandWorked( db.geo10.ensureIndex( { c : '2d', t : 1 }, { min : 0, max : Math.pow( 2, 40 ) } )); -assert( db.system.indexes.count({ ns : "test.geo10" }) == 2, "A3" ) - -printjson( db.system.indexes.find().toArray() ) +assert.eq( 2, db.geo10.getIndexes().length, "A3" ) assert.writeOK( db.geo10.insert( { c : [ 1, 1 ], t : 1 } )); assert.writeOK( db.geo10.insert( { c : [ 3600, 3600 ], t : 1 } )); |