fix: upgrade Next to bound gzip drain listeners
This commit is contained in:
@@ -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"]);
|
||||
});
|
||||
Reference in New Issue
Block a user