mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -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:
parent
36d877be4a
commit
e661591e7c
1 changed files with 6 additions and 1 deletions
|
@ -380,7 +380,12 @@ Deno.test("[node/http] send request with non-chunked body", async () => {
|
||||||
req.write("world");
|
req.write("world");
|
||||||
req.end();
|
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 () => {
|
Deno.test("[node/http] send request with chunked body", async () => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue