Skip to content

Commit cc225fa

Browse files
committed
fix: abstract started container async dispose
Signed-off-by: Joe Bowbeer <[email protected]>
1 parent 252239f commit cc225fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/testcontainers/src/generic-container/abstract-started-container.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class AbstractStartedContainer implements StartedTestContainer {
1212
await this.containerStopping();
1313
}
1414

15-
const stoppedContainer = this.startedTestContainer.stop(options);
15+
const stoppedContainer = await this.startedTestContainer.stop(options);
1616

1717
if (this.containerStopped) {
1818
await this.containerStopped();
@@ -105,6 +105,6 @@ export class AbstractStartedContainer implements StartedTestContainer {
105105
}
106106

107107
async [Symbol.asyncDispose]() {
108-
await this.startedTestContainer[Symbol.asyncDispose]();
108+
await this.stop();
109109
}
110110
}

0 commit comments

Comments
 (0)