Skip to content

Commit f80a517

Browse files
ensure chunking test has a big enough max buffer
1 parent 4521fbe commit f80a517

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/vitest-pool-workers/test/chunking.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ test("chunks large WebSocket messages bi-directionally", async ({
3838
`,
3939
});
4040
// Increase buffer size to allow the `exec` command to receive this large output.
41-
const result = await vitestRun({ maxBuffer: bigText.length + 1000 });
41+
// If this is not big enough the child process running Vitest will exit with a SIGINT signal
42+
const result = await vitestRun({ maxBuffer: bigText.length + 10000 });
4243
await result.exitCode;
4344
// ...and logs it back
4445
expect(result.stdout).toMatch(bigText);

0 commit comments

Comments
 (0)