From e9d26d5cda717ac198c76a6338485bcbc5fa2be8 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Mon, 4 May 2026 16:59:48 -0400 Subject: [PATCH] Fix e2e live server stdout backpressure --- tests/support/hooks.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/support/hooks.ts b/tests/support/hooks.ts index 3e1493ce5..901fd7e86 100644 --- a/tests/support/hooks.ts +++ b/tests/support/hooks.ts @@ -87,7 +87,10 @@ async function startLive(): Promise<{ url: string; resource: BackendResource }> const proc = spawn( emanoteBin, ["-L", fixtureDir, "run", "--port", String(port)], - { stdio: ["ignore", "pipe", "pipe"] }, + // Emanote writes routine request/build output to stdout. In long morph + // runs, an unread stdout pipe can fill and block the server process, + // making later page.goto("/") calls hang even though the backend started. + { stdio: ["ignore", "ignore", "pipe"] }, ); proc.stderr?.on("data", (d: Buffer) => process.stderr.write(`[emanote:live] ${d}`),