From ec4bd16b033fe072d6a24623992cef0b7242d7d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E6=A0=91=E4=BA=BA?= Date: Sun, 15 Dec 2024 04:52:36 +0900 Subject: [PATCH] test: make vite happy --- src/util/__tests__/ConcurrentQueue.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/__tests__/ConcurrentQueue.test.ts b/src/util/__tests__/ConcurrentQueue.test.ts index 5074953..0231bd0 100644 --- a/src/util/__tests__/ConcurrentQueue.test.ts +++ b/src/util/__tests__/ConcurrentQueue.test.ts @@ -101,7 +101,7 @@ test('it should move on to the next item in the queue once failed', async () => await expect(badPromise).rejects.toThrowError('dummy error'); queuedResolver.forEach((resolve) => resolve()); - expect(Promise.all(promises)).resolves.toEqual([1, 2, 4, 5]); + await expect(Promise.all(promises)).resolves.toEqual([1, 2, 4, 5]); } finally { vi.spyOn(queue, 'handler').mockRejectedValue(new Error('handler ran too late')); queuedResolver.forEach((resolve) => resolve());