Skip to content

Commit 2247b1f

Browse files
committed
fix typecheck error
1 parent 797ed36 commit 2247b1f

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

packages/redis-worker/src/fair-queue/tests/fairQueue.test.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -909,16 +909,14 @@ describe("FairQueue", () => {
909909
enabled: true,
910910
blockingTimeoutSeconds: 1,
911911
},
912-
concurrency: {
913-
groups: [
914-
{
915-
name: "tenant",
916-
extractGroupId: (q) => q.tenantId,
917-
getLimit: async () => 2, // Limit to 2 concurrent per tenant
918-
defaultLimit: 2,
919-
},
920-
],
921-
},
912+
concurrencyGroups: [
913+
{
914+
name: "tenant",
915+
extractGroupId: (q) => q.tenantId,
916+
getLimit: async () => 2, // Limit to 2 concurrent per tenant
917+
defaultLimit: 2,
918+
},
919+
],
922920
startConsumers: false,
923921
});
924922

0 commit comments

Comments
 (0)