Skip to content
Browse files

fix test. _id index no longer optional (unless capped and in local)

  • Loading branch information...
1 parent b202965 commit 4a9a10f926a8cc027182cd4c71c8aa6c0000dd56 @matulef matulef committed Aug 2, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 jstests/index9.js
View
4 jstests/index9.js
@@ -9,9 +9,7 @@ assert.eq( 1, db.system.indexes.count( {ns: "test.jstests_index9"} ), "There sho
t.drop();
db.createCollection( "jstests_index9", {autoIndexId:false} );
-assert.eq( 0, db.system.indexes.count( {ns: "test.jstests_index9"} ), "There should be 0 index if autoIndexId: false" );
-t.createIndex( { _id:1 } );
-assert.eq( 1, db.system.indexes.count( {ns: "test.jstests_index9"} ) );
+assert.eq( 1, db.system.indexes.count( {ns: "test.jstests_index9"} ), "There should be 1 index even if autoIndexId: false" );
t.createIndex( { _id:1 } );
assert.eq( 1, db.system.indexes.count( {ns: "test.jstests_index9"} ) );

0 comments on commit 4a9a10f

Please sign in to comment.
Something went wrong with that request. Please try again.