diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-05-04 16:36:28 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-05-04 16:36:28 -0400 |
commit | 3f28d8294fd2827d4a4f7f14c16c0fda34625827 (patch) | |
tree | ad13d379765594a979711b9ca42a1ec1763d686d /jstests/rename.js | |
parent | 9b35cc654027b28a9bc86e5d9a8deacff7e8c34c (diff) | |
download | mongo-3f28d8294fd2827d4a4f7f14c16c0fda34625827.tar.gz |
fix rename test
Diffstat (limited to 'jstests/rename.js')
-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} ) ); |