Skip to content

Commit

Permalink
Clear previous shards
Browse files Browse the repository at this point in the history
  • Loading branch information
gagik committed Oct 23, 2024
1 parent 789ba83 commit 80ac653
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/shell-api/src/shard.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit 80ac653

Please sign in to comment.