diff options
author | Matt Mastracci <matthew@mastracci.com> | 2023-08-05 15:43:16 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-05 15:43:16 -0600 |
commit | 85a2b281f566d3404d23852ae29d4a75d020dd5e (patch) | |
tree | 1286dbd22844981b2b2c51872f9ef99bd7073300 /cli/tests | |
parent | a1280c36c245daf1552651559d3c3c6c6e8ed71b (diff) |
chore: use zlib-ng for flate2 (#20059)
Extracted from PR #16011
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/unit/http_test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
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(); } |