From 4581569d7b2cc753ecbe34b64f89fc6634033849 Mon Sep 17 00:00:00 2001 From: Ciro Spaciari Date: Wed, 23 Apr 2025 19:22:15 -0700 Subject: [PATCH] de-flaky --- test/js/node/http/node-http.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/js/node/http/node-http.test.ts b/test/js/node/http/node-http.test.ts index 693fa89213..49e116d6f0 100644 --- a/test/js/node/http/node-http.test.ts +++ b/test/js/node/http/node-http.test.ts @@ -2457,7 +2457,7 @@ test("request.socket._secureEstablished should identify if the request is secure test("should emit clientError when Content-Length is invalid", async () => { const { promise, resolve, reject } = Promise.withResolvers(); - const server = http.createServer(reject); + await using server = http.createServer(reject); server.on("clientError", (err, socket) => { resolve(err); @@ -2481,7 +2481,7 @@ test("should emit clientError when Content-Length is invalid", async () => { test("should emit clientError when mixing Content-Length and Transfer-Encoding", async () => { const { promise, resolve, reject } = Promise.withResolvers(); - const server = http.createServer(reject); + await using server = http.createServer(reject); server.on("clientError", (err, socket) => { resolve(err);