From 0df9b62d4c5ed00d69d6fe414d1289b5c7bbf6df Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Mon, 2 Aug 2010 12:05:43 -0400 Subject: fix test from cursor change --- jstests/sharding/auto2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'jstests/sharding/auto2.js') 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") -- cgit v1.2.1