From 85a2b281f566d3404d23852ae29d4a75d020dd5e Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Sat, 5 Aug 2023 15:43:16 -0600 Subject: chore: use zlib-ng for flate2 (#20059) Extracted from PR #16011 --- cli/tests/unit/http_test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/tests') diff --git a/cli/tests/unit/http_test.ts b/cli/tests/unit/http_test.ts index 2e56b1787..8d246b979 100644 --- a/cli/tests/unit/http_test.ts +++ b/cli/tests/unit/http_test.ts @@ -2043,9 +2043,9 @@ Deno.test({ const output = decoder.decode(stdout); assert(output.includes("vary: Accept-Encoding\r\n")); assert(output.includes("content-encoding: gzip\r\n")); - // Ensure the content-length header is updated. + // Ensure the content-length header is updated (but don't check the exact length). assert(!output.includes(`content-length: ${contentLength}\r\n`)); - assert(output.includes("content-length: 72\r\n")); + assert(output.includes("content-length: ")); } await Promise.all([server(), client()]); @@ -2106,7 +2106,7 @@ Deno.test({ assert(output.includes("content-encoding: gzip\r\n")); // Ensure the content-length header is updated. assert(!output.includes(`content-length: ${contentLength}\r\n`)); - assert(output.includes("content-length: 80\r\n")); + assert(output.includes("content-length: ")); proc.close(); } -- cgit v1.2.3