0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
mongodb/jstests/drop.js
2009-04-07 14:24:16 -04:00

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() );