From 93860824676ad1cac3dbff86699dd3c4dac3b4d4 Mon Sep 17 00:00:00 2001 From: Birk Skyum Date: Fri, 20 Sep 2024 10:36:30 +0200 Subject: [PATCH] set options early --- src/util/actor.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/actor.test.ts b/src/util/actor.test.ts index fe89476772f..7b11a95faad 100644 --- a/src/util/actor.test.ts +++ b/src/util/actor.test.ts @@ -95,7 +95,7 @@ describe('Actor', () => { expect(gotAbortSignal).toBeTruthy(); }); - test('cancel a request that must be queued will not call the method at all', async () => { + test('cancel a request that must be queued will not call the method at all', {retry: 3}, async () => { const worker = workerFactory() as any as WorkerGlobalScopeInterface & ActorTarget; const actor = new Actor(worker, '1'); @@ -115,7 +115,7 @@ describe('Actor', () => { await Promise.any([p1, p2]); expect(received).toBeFalsy(); expect(spy).not.toHaveBeenCalled(); - }, {retry: 3}); + }); test('#remove unbinds event listener', () => new Promise(done => { const actor = new Actor({