Skip to content

Commit 2d65607

Browse files
committed
Update Mosquitto container wait strategy to use listening ports instead of log message.
1 parent ffd1018 commit 2d65607

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ export class MosquittoContainer extends GenericContainer {
1010

1111
constructor(image: string) {
1212
super(image);
13-
this.withExposedPorts(MQTT_PORT)
14-
.withWaitStrategy(Wait.forLogMessage(/running mosquitto as user/i))
15-
.withStartupTimeout(120_000);
13+
this.withExposedPorts(MQTT_PORT).withWaitStrategy(Wait.forListeningPorts()).withStartupTimeout(120_000);
1614
}
1715

1816
public withUsername(username: string): this {

0 commit comments

Comments
 (0)