diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-05-15 08:37:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-15 08:37:46 -0400 |
commit | e661591e7c43c907f39dac7d2cc94efd71e57089 (patch) | |
tree | ff8d5cf017ffcb049520ce901b5744909fd37473 /tests/unit_node/http_test.ts | |
parent | 36d877be4a220cb30ddf69d43c386ae8d15f4b32 (diff) |
chore: fix flaky '[node/http] send request with non-chunked body' test (#23818)
https://github.com/denoland/deno/actions/runs/9086887959/job/24973565321
Diffstat (limited to 'tests/unit_node/http_test.ts')
-rw-r--r-- | tests/unit_node/http_test.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/unit_node/http_test.ts b/tests/unit_node/http_test.ts index c298f2abb..c57027549 100644 --- a/tests/unit_node/http_test.ts +++ b/tests/unit_node/http_test.ts @@ -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 () => { |