diff --git a/packages/shell-api/src/shard.spec.ts b/packages/shell-api/src/shard.spec.ts index 9d8f73e99..e609f6c5c 100644 --- a/packages/shell-api/src/shard.spec.ts +++ b/packages/shell-api/src/shard.spec.ts @@ -2893,6 +2893,10 @@ describe('Shard', function () { const dbName = 'shard-stats-test'; const ns = `${dbName}.test`; + before(async function () { + await db.dropDatabase(); + }); + beforeEach(async function () { db = sh._database.getSiblingDB(dbName); await db.getCollection('test').insertOne({ key: 1 });