diff options
Diffstat (limited to 'jstests/core/capped.js')
-rw-r--r-- | jstests/core/capped.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/core/capped.js b/jstests/core/capped.js index 421132b6f75..72eddb8de2f 100644 --- a/jstests/core/capped.js +++ b/jstests/core/capped.js @@ -1,8 +1,9 @@ db.jstests_capped.drop(); db.createCollection("jstests_capped", {capped:true, size:30000}); -assert.eq( 1, db.system.indexes.find( {ns:"test.jstests_capped"} ).count(), "expected a count of one index for new capped collection" ); t = db.jstests_capped; +assert.eq( 1, t.getIndexes().length, "expected a count of one index for new capped collection" ); + t.save({x:1}); t.save({x:2}); |