summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2023-08-05 15:43:16 -0600
committerGitHub <noreply@github.com>2023-08-05 15:43:16 -0600
commit85a2b281f566d3404d23852ae29d4a75d020dd5e (patch)
tree1286dbd22844981b2b2c51872f9ef99bd7073300 /cli/tests
parenta1280c36c245daf1552651559d3c3c6c6e8ed71b (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.ts6
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();
}