mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
9 lines
273 B
JavaScript
9 lines
273 B
JavaScript
f = db.jstests_drop;
|
|
|
|
f.drop();
|
|
|
|
f.ensureIndex( {a:1} );
|
|
assert.eq( 1, db.system.indexes.find( {ns:"test.jstests_drop"} ).count() );
|
|
assert.commandWorked( db.runCommand( {drop:"jstests_drop"} ) );
|
|
assert.eq( 0, db.system.indexes.find( {ns:"test.jstests_drop"} ).count() );
|