Skip to content

Commit

Permalink
try sleep(20ms)
Browse files Browse the repository at this point in the history
  • Loading branch information
satyarohith committed Mar 6, 2024
1 parent 93377ba commit 9c79c7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit_node/http2_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,5 @@ Deno.test("[node/http2.createServer()]", async () => {
server.close();
// Wait to avoid leaking the timer from here
// https://github.com/denoland/deno/blob/749b6e45e58ac87188027f79fe403d130f86bd73/ext/node/polyfills/net.ts#L2396-L2402
await new Promise<void>((resolve) => server.on("close", resolve));
await new Promise((resolve) => setTimeout(resolve, 20));
});

0 comments on commit 9c79c7e

Please sign in to comment.