From 48de711df4a8479b934884bf3bfab34bec0663bf Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Fri, 9 Jun 2023 13:44:11 +0200 Subject: [PATCH] chore(tests): don't cancel child process stream (#1262) --- tests/test_utils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_utils.ts b/tests/test_utils.ts index e5c68812..6e638de1 100644 --- a/tests/test_utils.ts +++ b/tests/test_utils.ts @@ -11,7 +11,9 @@ export async function startFreshServer(options: Deno.CommandOptions) { const decoder = new TextDecoderStream(); const lines: ReadableStream = serverProcess.stdout .pipeThrough(decoder) - .pipeThrough(new TextLineStream()); + .pipeThrough(new TextLineStream(), { + preventCancel: true, + }); let started = false; for await (const line of lines) {