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:
parent
dbc11f0fdf
commit
96e86cf883
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user