From bd79baea5e6734ab70802cd2c2532a491a987ff7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 25 Jul 2023 09:17:53 +0200 Subject: fix(node): add writable and readable fields to FakeSocket (#19931) Closes https://github.com/denoland/deno/issues/19927 --- cli/tests/unit_node/http_test.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cli/tests') diff --git a/cli/tests/unit_node/http_test.ts b/cli/tests/unit_node/http_test.ts index 62cfe59a8..a361ff257 100644 --- a/cli/tests/unit_node/http_test.ts +++ b/cli/tests/unit_node/http_test.ts @@ -352,6 +352,8 @@ Deno.test("[node/http] send request with non-chunked body", async () => { assertEquals(requestBody, "hello world"); }); req.on("socket", (socket) => { + assert(socket.writable); + assert(socket.readable); socket.setKeepAlive(); socket.destroy(); }); -- cgit v1.2.3