From fa5171167f00c4c21767c486e27d838e94f7379b Mon Sep 17 00:00:00 2001 From: Rogger Valverde Date: Mon, 11 Nov 2024 18:23:05 -0600 Subject: [PATCH] test: add types on processor params (#2885) --- tests/test_flow.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_flow.ts b/tests/test_flow.ts index e9c1b0baa9..8736904bb6 100644 --- a/tests/test_flow.ts +++ b/tests/test_flow.ts @@ -990,7 +990,7 @@ describe('flows', () => { const worker = new Worker( queueName, - async (job, token) => { + async (job: Job, token?: string) => { let step = job.data.step; while (step !== Step.Finish) { switch (step) { @@ -1013,7 +1013,7 @@ describe('flows', () => { ], opts: { parent: { - id: job.id, + id: job.id!, queue: job.queueQualifiedName, }, }, @@ -1032,7 +1032,7 @@ describe('flows', () => { break; } case Step.Third: { - const shouldWait = await job.moveToWaitingChildren(token); + const shouldWait = await job.moveToWaitingChildren(token!); if (!shouldWait) { await job.updateData({ step: Step.Finish,