diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit_node/http_test.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/unit_node/http_test.ts b/tests/unit_node/http_test.ts index a053f3a27..71043d985 100644 --- a/tests/unit_node/http_test.ts +++ b/tests/unit_node/http_test.ts @@ -994,6 +994,15 @@ Deno.test( }, ); +Deno.test( + "[node/http] client destroy before sending request should not error", + () => { + const request = http.request("http://localhost:5929/"); + // Calling this would throw + request.destroy(); + }, +); + Deno.test("[node/http] node:http exports globalAgent", async () => { const http = await import("node:http"); assert( |