Skip to content

Commit 421f6ab

Browse files
committed
Fix compilation issue due to changed type definition of PortWithOptionalBinding
1 parent d0814dc commit 421f6ab

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

packages/modules/azurite/src/azurite-container.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {
22
AbstractStartedContainer,
33
GenericContainer,
4+
getContainerPort,
45
hasHostBinding,
56
PortWithOptionalBinding,
67
StartedTestContainer,
@@ -171,23 +172,26 @@ export class StartedAzuriteContainer extends AbstractStartedContainer {
171172
if (hasHostBinding(this.blobPort)) {
172173
return this.blobPort.host;
173174
} else {
174-
return this.getMappedPort(this.blobPort);
175+
const containerPort = getContainerPort(this.blobPort);
176+
return this.getMappedPort(containerPort);
175177
}
176178
}
177179

178180
public getQueuePort(): number {
179181
if (hasHostBinding(this.queuePort)) {
180182
return this.queuePort.host;
181183
} else {
182-
return this.getMappedPort(this.queuePort);
184+
const containerPort = getContainerPort(this.queuePort);
185+
return this.getMappedPort(containerPort);
183186
}
184187
}
185188

186189
public getTablePort(): number {
187190
if (hasHostBinding(this.tablePort)) {
188191
return this.tablePort.host;
189192
} else {
190-
return this.getMappedPort(this.tablePort);
193+
const containerPort = getContainerPort(this.tablePort);
194+
return this.getMappedPort(containerPort);
191195
}
192196
}
193197

0 commit comments

Comments
 (0)