From 5cda141f2d71e8379a14498db8fa2d997c477a52 Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Mon, 10 Jul 2023 13:48:35 +0200 Subject: fix(node/http): server use FakeSocket and add end method (#19660) Fixes #19324 --- cli/tests/unit_node/http_test.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'cli/tests/unit_node') diff --git a/cli/tests/unit_node/http_test.ts b/cli/tests/unit_node/http_test.ts index 2dbada770..baebd4678 100644 --- a/cli/tests/unit_node/http_test.ts +++ b/cli/tests/unit_node/http_test.ts @@ -261,6 +261,7 @@ Deno.test("[node/http] non-string buffer response", { }, async () => { const promise = deferred(); const server = http.createServer((_, res) => { + res.socket!.end(); gzip( Buffer.from("a".repeat(100), "utf8"), {}, -- cgit v1.2.3