diff options
author | Leo Kettmeir <crowlkats@toaxl.com> | 2023-06-30 03:39:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-30 03:39:16 +0200 |
commit | 4db534d4614e2b96161b67906e062500e764079c (patch) | |
tree | 266bf16b03735e019ed36dd7795c2038c2c2e0bb /cli/tests | |
parent | 13a45ae994640d3d2a255d20afe3d9ed95edc853 (diff) |
fix(node/http): add setKeepAlive to FakeSocket (#19659)
Closes #19535
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/unit_node/http_test.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/tests/unit_node/http_test.ts b/cli/tests/unit_node/http_test.ts index 2a2203e05..2dbada770 100644 --- a/cli/tests/unit_node/http_test.ts +++ b/cli/tests/unit_node/http_test.ts @@ -350,6 +350,9 @@ Deno.test("[node/http] send request with non-chunked body", async () => { assertEquals(requestHeaders.has("transfer-encoding"), false); assertEquals(requestBody, "hello world"); }); + req.on("socket", (socket) => { + socket.setKeepAlive(); + }); req.write("hello "); req.write("world"); req.end(); |