Skip to content

Commit

Permalink
test: add types on processor params (#2885)
Browse files Browse the repository at this point in the history
  • Loading branch information
roggervalf authored Nov 12, 2024
1 parent b70dbdf commit fa51711
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_flow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -1013,7 +1013,7 @@ describe('flows', () => {
],
opts: {
parent: {
id: job.id,
id: job.id!,
queue: job.queueQualifiedName,
},
},
Expand All @@ -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,
Expand Down

0 comments on commit fa51711

Please sign in to comment.