Skip to content

Commit

Permalink
set options early
Browse files Browse the repository at this point in the history
  • Loading branch information
birkskyum committed Sep 20, 2024
1 parent 605f848 commit 9386082
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/actor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand All @@ -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<void>(done => {
const actor = new Actor({
Expand Down

0 comments on commit 9386082

Please sign in to comment.