Skip to content

Commit

Permalink
make the test less flaky
Browse files Browse the repository at this point in the history
  • Loading branch information
satyarohith committed Mar 6, 2024
1 parent 6de9e5a commit 93377ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/unit_node/http2_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,7 @@ Deno.test("[node/http2.createServer()]", async () => {
]);
assertEquals(response, "Hello, World!");
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));
});

0 comments on commit 93377ba

Please sign in to comment.