We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22ed2a6 commit 2df8860Copy full SHA for 2df8860
1 file changed
packages/testcontainers/src/wait-strategies/log-wait-strategy.ts
@@ -28,7 +28,9 @@ export class LogWaitStrategy extends AbstractWaitStrategy {
28
29
const comparisonFn: (line: string) => boolean = (line: string) => {
30
if (this.message instanceof RegExp) {
31
- this.message.lastIndex = 0;
+ if (this.message.global || this.message.sticky) {
32
+ this.message.lastIndex = 0;
33
+ }
34
return this.message.test(line);
35
} else {
36
return line.includes(this.message);
0 commit comments