Skip to content

Commit 2297ff0

Browse files
Fix azurecosmosdb import
1 parent ace19a0 commit 2297ff0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ import {
22
AbstractStartedContainer,
33
GenericContainer,
44
PortGenerator,
5-
RandomUniquePortGenerator,
5+
RandomPortGenerator,
66
StartedTestContainer,
77
Wait,
88
} from "testcontainers";
99

1010
type Protocol = "http" | "https";
11+
1112
const DEFAULT_KEY = "C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw=="; // default key for Cosmos DB Emulator
1213
const DEFAULT_PROTOCOL = "http";
1314
const DEFAULT_TELEMETRY_ENABLED = false;
@@ -24,7 +25,7 @@ export class AzureCosmosDbEmulatorContainer extends GenericContainer {
2425

2526
constructor(image: string) {
2627
super(image);
27-
this.portGenerator = new RandomUniquePortGenerator();
28+
this.portGenerator = new RandomPortGenerator();
2829
this.withWaitStrategy(Wait.forLogMessage(COSMOS_READY_LOG_MESSAGE));
2930
}
3031

0 commit comments

Comments
 (0)