summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/unit_node/http_test.ts3
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();