doesnt make much sense to specify capped without a size so check for that

This commit is contained in:
dwight
2011-06-11 12:55:46 -04:00
parent 8db6995de2
commit bfe34b1985
6 changed files with 33 additions and 17 deletions

View File

@@ -156,7 +156,7 @@ namespace ClientTests {
public:
Create() : Base( "Create" ) {}
void run() {
db.createCollection( "unittests.clienttests.create", 0, true );
db.createCollection( "unittests.clienttests.create", 4096, true );
BSONObj info;
ASSERT( db.runCommand( "unittests", BSON( "collstats" << "clienttests.create" ), info ) );
}