diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-08-02 12:05:43 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-08-02 12:05:43 -0400 |
commit | 0df9b62d4c5ed00d69d6fe414d1289b5c7bbf6df (patch) | |
tree | bffef1c63439c4774d02f5210e2aa200a04de296 /jstests/sharding/auto2.js | |
parent | 57b9d10710db98fc1750260cf97f2bc29a71aa6a (diff) | |
download | mongo-0df9b62d4c5ed00d69d6fe414d1289b5c7bbf6df.tar.gz |
fix test from cursor change
Diffstat (limited to 'jstests/sharding/auto2.js')
-rw-r--r-- | jstests/sharding/auto2.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/sharding/auto2.js b/jstests/sharding/auto2.js index aaadb13810e..5ac9cd990e4 100644 --- a/jstests/sharding/auto2.js +++ b/jstests/sharding/auto2.js @@ -102,14 +102,14 @@ for ( i =0; i<100; i++ ) t.save( { _id : i } ); for ( i=0; i<100; i++ ){ t.find().batchSize( 2 ).next(); - assert.lt( 0 , db.runCommand( "cursorInfo" ).total , "cursor1" ); + assert.lt( 0 , db.runCommand( "cursorInfo" ).totalOpen , "cursor1" ); gc(); } for ( i=0; i<100; i++ ){ gc(); } -assert.eq( 0 , db.runCommand( "cursorInfo" ).total , "cursor2" ); +assert.eq( 0 , db.runCommand( "cursorInfo" ).totalOpen , "cursor2" ); print( "checkpoint E") |