From 80ac653485671716724b70e714295b4f5f91cb4c Mon Sep 17 00:00:00 2001 From: gagik Date: Wed, 23 Oct 2024 15:06:51 +0200 Subject: [PATCH] Clear previous shards --- packages/shell-api/src/shard.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) 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 });