diff options
-rw-r--r-- | jstests/rename.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/jstests/rename.js b/jstests/rename.js index 3ace9680476..d9928bf2873 100644 --- a/jstests/rename.js +++ b/jstests/rename.js @@ -31,13 +31,15 @@ a.drop(); b.drop(); c.drop(); -db.createCollection( "jstests_rename_a", {capped:true,size:100} ); +// TODO: too many numbers hard coded here + +db.createCollection( "jstests_rename_a", {capped:true,size:10000} ); for( i = 0; i < 10; ++i ) { a.save( { i: i } ); } assert.commandWorked( admin.runCommand( {renameCollection:"test.jstests_rename_a", to:"test.jstests_rename_b"} ) ); assert.eq( 1, b.count( {i:9} ) ); -for( i = 10; i < 20; ++i ) { +for( i = 10; i < 250; ++i ) { b.save( { i: i } ); } assert.eq( 0, b.count( {i:9} ) ); |