Skip to content

Commit

Permalink
Use different DB and collection names
Browse files Browse the repository at this point in the history
  • Loading branch information
gagik committed Oct 8, 2024
1 parent e895d65 commit bf1f643
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/shell-api/src/shard.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down Expand Up @@ -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 () {
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit bf1f643

Please sign in to comment.