From bf1f643a634610b15d2e9074a7a330d4057c09c2 Mon Sep 17 00:00:00 2001 From: gagik Date: Tue, 8 Oct 2024 11:49:21 +0200 Subject: [PATCH] Use different DB and collection names --- packages/shell-api/src/shard.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/shell-api/src/shard.spec.ts b/packages/shell-api/src/shard.spec.ts index bcd394040..c8ec6a3cd 100644 --- a/packages/shell-api/src/shard.spec.ts +++ b/packages/shell-api/src/shard.spec.ts @@ -2557,7 +2557,7 @@ describe('Shard', function () { describe('collection.getShardDistribution()', function () { let db: Database; - const dbName = 'shard-stats-test'; + const dbName = 'get-shard-distribution-test'; const ns = `${dbName}.test`; beforeEach(async function () { @@ -2614,7 +2614,7 @@ describe('Shard', function () { context('sharded timeseries collections', function () { skipIfServerVersion(mongos, '< 5.1'); - const timeseriesCollectionName = 'testTS'; + const timeseriesCollectionName = 'getShardDistributionTS'; const timeseriesNS = `${dbName}.${timeseriesCollectionName}`; beforeEach(async function () { @@ -2647,7 +2647,7 @@ describe('Shard', function () { it('returns the correct StatsResult', async function () { const result = await db - .getCollection('testTS') + .getCollection(timeseriesCollectionName) .getShardDistribution(); const shardDistributionValue = result.value as Document;