From 567fb354881e0d404558d8980a858cbc5b90095b Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 22 Aug 2023 19:53:24 +0200 Subject: [PATCH] test: speedup with background close --- test/index.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/index.test.ts b/test/index.test.ts index 680dca5..ae7151d 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -80,8 +80,8 @@ describe("ofetch", () => { listener = await listen(toNodeListener(app)); }); - afterAll(async () => { - await listener.close(); + afterAll(() => { + listener.close().catch(console.error); }); it("ok", async () => {