diff options
author | Aaron <aaron@10gen.com> | 2010-06-15 11:53:07 -0700 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2010-06-15 11:53:07 -0700 |
commit | 0676284bb13c252782c3f6a9343c6e4140ca799e (patch) | |
tree | ea28e60e321917533fcf54a883c330294c8116fc /jstests/indexh.js | |
parent | 1f9c1d6a3d88301f13f0e4db9cd368819833dad2 (diff) | |
download | mongo-0676284bb13c252782c3f6a9343c6e4140ca799e.tar.gz |
SERVER-366 simplify indexh test
Diffstat (limited to 'jstests/indexh.js')
-rw-r--r-- | jstests/indexh.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/jstests/indexh.js b/jstests/indexh.js index 8a2efb0741e..17f07cc4b44 100644 --- a/jstests/indexh.js +++ b/jstests/indexh.js @@ -23,9 +23,8 @@ assert.eq.automsg( "s1", "s3" ); // index node freeing t.drop(); t.ensureIndex( {a:1} ); -var big = new Array( 1000 ).toString(); -for( i = 0; i < 1000; ++i ) { - t.save( {a:i,b:big} ); +for( i = 'a'; i.length < 500; i += 'a' ) { + t.save( {a:i} ); } var s4 = db.stats().indexSize; debug( "s4: " + s4 ); |