Skip to content

Commit

Permalink
fixup! fix(api): Make e2e digest test faster
Browse files Browse the repository at this point in the history
  • Loading branch information
SokratisVidros committed Jan 29, 2025
1 parent 1658a6b commit 51c682b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/testing/src/jobs.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class JobsService {
unfinishedJobs?: number;
}) {
let runningJobs = 0;
unfinishedJobs = Math.max(unfinishedJobs, 0);
const safeUnfinishedJobs = Math.max(unfinishedJobs, 0);

const workflowMatch = templateId ? { _templateId: { $in: [templateId].flat() } } : {};
const typeMatch = delay
Expand All @@ -84,7 +84,7 @@ export class JobsService {
}),
0
);
} while (runningJobs > unfinishedJobs);
} while (runningJobs > safeUnfinishedJobs);

return {
getDelayedTimestamp: async () => {
Expand Down

0 comments on commit 51c682b

Please sign in to comment.