1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-11 01:58:05 -05:00

enable [node/http] client closing a streaming request doesn't terminate server

This commit is contained in:
Yoshiya Hinosawa 2024-10-17 22:16:31 +09:00
parent 781eb00dfe
commit 2a290317d2
No known key found for this signature in database
GPG key ID: 9017DB4559488785

View file

@ -1377,12 +1377,7 @@ Deno.test("[node/http] client closing a streaming response doesn't terminate ser
clearInterval(interval!);
});
Deno.test(
"[node/http] client closing a streaming request doesn't terminate server",
{
ignore: true,
},
async () => {
Deno.test("[node/http] client closing a streaming request doesn't terminate server", async () => {
let interval: number;
let uploadedData = "";
let requestError: Error | null = null;
@ -1460,8 +1455,7 @@ Deno.test(
server.close();
assertEquals(server.listening, false);
clearInterval(interval!);
},
);
});
Deno.test("[node/http] http.request() post streaming body works", async () => {
const server = http.createServer((req, res) => {