Skip to content

Commit 73c85ff

Browse files
authored
fix: flaky log-padding test assertions (firecow#1791)
1 parent d13514f commit 73c85ff

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/test-cases/log-padding/integration.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ async function verifyLogs ({maxJobNamePadding, expectedJobNamePadding, stateDir}
1919
}, writeStreams);
2020

2121
expect(writeStreams.stdoutLines.join("\n")).toContain(
22-
chalk`{blueBright short-name${" ".repeat(expectedJobNamePadding)}} {greenBright >} short-name\n`,
22+
chalk`{blueBright short-name${" ".repeat(expectedJobNamePadding)}} {greenBright >} short-name`,
2323
);
2424
expect(writeStreams.stdoutLines.join("\n")).toContain(
25-
chalk`{blueBright my-job-with-a-very-long-long-long-long-name} {greenBright >} long-name\n`,
25+
chalk`{blueBright my-job-with-a-very-long-long-long-long-name} {greenBright >} long-name`,
2626
);
2727
}
2828

@@ -52,7 +52,7 @@ test.concurrent("logs - log padding should only take needs and targeted jobs int
5252
}, writeStreams);
5353

5454
expect(writeStreams.stdoutLines.join("\n")).toContain(
55-
chalk`{blueBright short-name with needs } {greenBright >} short-name with needs\n`,
55+
chalk`{blueBright short-name with needs } {greenBright >} short-name with needs`,
5656
);
5757
});
5858

@@ -66,6 +66,6 @@ test.concurrent("logs - log padding should only take targeted jobs into account"
6666
}, writeStreams);
6767

6868
expect(writeStreams.stdoutLines.join("\n")).toContain(
69-
chalk`{blueBright short-name} {greenBright >} short-name\n`,
69+
chalk`{blueBright short-name} {greenBright >} short-name`,
7070
);
7171
});

0 commit comments

Comments
 (0)