diff options
Diffstat (limited to 'cli/tests/unit')
-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(); } |