forked from firecow/gitlab-ci-local
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathintegration.test.ts
More file actions
17 lines (15 loc) · 872 Bytes
/
Copy pathintegration.test.ts
File metadata and controls
17 lines (15 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import {WriteStreamsMock} from "../../../src/write-streams.js";
import {handler} from "../../../src/handler.js";
test.concurrent("parallel-matrix-long-name - completes without ENAMETOOLONG", async () => {
const writeStreams = new WriteStreamsMock();
await handler({
cwd: "tests/test-cases/parallel-matrix-long-name",
shellIsolation: true,
stateDir: ".gitlab-ci-local-parallel-matrix-long-name",
}, writeStreams);
// Both matrix entries must complete — the long one would crash with ENAMETOOLONG before the fix
const passing = writeStreams.stdoutLines.filter(l => l.includes(" PASS "));
expect(passing.length).toBe(2);
expect(writeStreams.stdoutLines.some(l => l.includes("build-job: [short]"))).toBe(true);
expect(writeStreams.stdoutLines.some(l => l.includes("build-job: [my-app-controller,"))).toBe(true);
});