fix: upgrade Next to bound gzip drain listeners

This commit is contained in:
amosblomqvist
2026-10-28 00:20:49 +02:00
parent 8f6fd7cd29
commit 59f389d0a6
5 changed files with 436 additions and 166 deletions
+12
View File
@@ -0,0 +1,12 @@
/** Run the same fake-input gate used for the traced standalone dependency graph. */
import assert from "node:assert/strict";
import path from "node:path";
import { test } from "node:test";
import { fileURLToPath } from "node:url";
import { verifyCompressionRuntime } from "../scripts/smoke-compression-runtime.mjs";
test("Next compression keeps drain listeners bounded through backpressure, payload delivery and disconnect", { timeout: 35_000 }, () => {
const root = fileURLToPath(new URL("../", import.meta.url));
const report = verifyCompressionRuntime(path.resolve(root));
assert.deepEqual(report.cases.map((item: { mode: string }) => item.mode), ["/node", "/web", "/identity", "/no-transform", "/abort"]);
});