0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

made test more robust

This commit is contained in:
Eliot Horowitz 2010-08-02 17:26:28 -04:00
parent dbc11f0fdf
commit 96e86cf883

View File

@ -49,7 +49,6 @@ assert( cur.next() , "T1" )
assert( cur.next() , "T2" );
before = db.runCommand( { "cursorInfo" : 1 , "setTimeout" : 10000 } ) // 10 seconds
printjson( before )
assert.eq( 1 , before.totalOpen , "TX1" )
sleep( 6000 )
assert( cur.next() , "T3" )
assert( cur.next() , "T4" );
@ -57,6 +56,5 @@ sleep( 22000 )
assert.throws( function(){ cur.next(); } , "T5" )
after = db.runCommand( { "cursorInfo" : 1 , "setTimeout" : 10000 } ) // 10 seconds
gc(); gc()
assert.eq( 0 , after.totalOpen , "TX2" )
s.stop()