diff options
-rw-r--r-- | jstests/cursor8.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/cursor8.js b/jstests/cursor8.js index 9d0eced80d2..169bb5d5deb 100644 --- a/jstests/cursor8.js +++ b/jstests/cursor8.js @@ -2,6 +2,9 @@ db.f.drop(); db.f.save( {} ); db.f.save( {} ); db.f.save( {} ); + +db.getMongo().getDB( "admin" ).runCommand( {closeAllDatabases:1} ); + assert.eq( 0, db.runCommand( {cursorInfo:1} ).clientCursors_size ); assert.eq( 2, db.f.find( {} ).limit( 2 ).toArray().length ); assert.eq( 1, db.runCommand( {cursorInfo:1} ).clientCursors_size ); |