mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
11 lines
331 B
JavaScript
11 lines
331 B
JavaScript
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 );
|