Skip to content

Commit

Permalink
Deflake a test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Sep 6, 2024
1 parent 981f1d4 commit ea12db4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/js/bun/http/bun-server.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@ test("Bun should be able to handle utf16 inside Content-Type header #11316", asy
test("should be able to async upgrade using custom protocol", async () => {
const { promise, resolve } = Promise.withResolvers<{ code: number; reason: string } | boolean>();
using server = Bun.serve<unknown>({
port: 0,
async fetch(req: Request, server: Server) {
await Bun.sleep(1);

Expand Down

0 comments on commit ea12db4

Please sign in to comment.