Permalink
Browse files

Revert "fix test. _id index no longer optional (unless capped and in …

…local)"

This reverts commit 4a9a10f.
  • Loading branch information...
1 parent 45667b3 commit 7d1f0993f5472d8035abbf89814546cf6829aa50 @kchodorow kchodorow committed Aug 2, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 jstests/index9.js
View
@@ -9,7 +9,9 @@ assert.eq( 1, db.system.indexes.count( {ns: "test.jstests_index9"} ), "There sho
t.drop();
db.createCollection( "jstests_index9", {autoIndexId:false} );
-assert.eq( 1, db.system.indexes.count( {ns: "test.jstests_index9"} ), "There should be 1 index even if 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"} ) );
t.createIndex( { _id:1 } );
assert.eq( 1, db.system.indexes.count( {ns: "test.jstests_index9"} ) );

0 comments on commit 7d1f099

Please sign in to comment.