Skip to content

Commit 47c8ac0

Browse files
authored
Propagate a clear error when a container with LogWaitStrategy fails (#183)
1 parent dbe7a88 commit 47c8ac0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wait-strategy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export class LogWaitStrategy extends AbstractWaitStrategy {
120120
.on("end", () => {
121121
stream.destroy();
122122
clearTimeout(timeout);
123-
reject();
123+
reject(new Error(`Log stream ended and message "${this.message}" was not received`));
124124
});
125125
});
126126
}

0 commit comments

Comments
 (0)