1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

chore: fix flaky '[node/http] send request with non-chunked body' test (#23818)

https://github.com/denoland/deno/actions/runs/9086887959/job/24973565321
This commit is contained in:
David Sherret 2024-05-15 08:37:46 -04:00 committed by GitHub
parent 36d877be4a
commit e661591e7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -380,7 +380,12 @@ Deno.test("[node/http] send request with non-chunked body", async () => {
req.write("world");
req.end();
await servePromise;
await Promise.all([
servePromise,
// wait 100ms because of the socket.setTimeout(100) above
// in order to not cause a flaky test sanitizer failure
await new Promise((resolve) => setTimeout(resolve, 100)),
]);
});
Deno.test("[node/http] send request with chunked body", async () => {