diff options
Diffstat (limited to 'jstests/replsets/capped_id.js')
-rw-r--r-- | jstests/replsets/capped_id.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/replsets/capped_id.js b/jstests/replsets/capped_id.js index 3cd51a617b4..ef700e48959 100644 --- a/jstests/replsets/capped_id.js +++ b/jstests/replsets/capped_id.js @@ -101,8 +101,8 @@ for( testnum=0; testnum < numtests; testnum++ ){ slave2db.system.indexes.find().forEach(printjson); print(""); - // insure each slave has _id index, but not master - assert.eq( 0 , + // insure all nodes have _id index + assert.eq( 1 , masterdb.system.indexes.find( { key:{"_id" : 1}, ns: dbname + "." + coll } ).count() , "master has an _id index on capped collection"); assert.eq( 1 , |