From 9d5f6f67d612bcf6d5edfec3e6a442f499dab9bd Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Tue, 11 Jul 2023 15:08:35 +0200 Subject: fix(node/http): add destroy to FakeSocket (#19796) Closes #19782 --- cli/tests/unit_node/http_test.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'cli/tests') diff --git a/cli/tests/unit_node/http_test.ts b/cli/tests/unit_node/http_test.ts index a84136052..c8c2a52a2 100644 --- a/cli/tests/unit_node/http_test.ts +++ b/cli/tests/unit_node/http_test.ts @@ -353,6 +353,7 @@ Deno.test("[node/http] send request with non-chunked body", async () => { }); req.on("socket", (socket) => { socket.setKeepAlive(); + socket.destroy(); }); req.write("hello "); req.write("world"); -- cgit v1.2.3