Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Oct 19, 2023
1 parent b2e1812 commit 68c2073
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
/src/generated
/rewired
/website/build
/website/.docusaurus
/_LOCAL
8 changes: 6 additions & 2 deletions __tests__/cron-timing.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ test("does not schedule duplicate jobs when a job key is supplied", () =>
let jobs!: Awaited<ReturnType<typeof getJobs>>;
for (let i = 0; i < 10; i++) {
jobs = await getJobs(pgPool);
if (jobs.length > 0) break;
if (jobs.length > 0) {
break;
}
await sleep(100);
}

Expand All @@ -183,7 +185,9 @@ test("does not schedule duplicate jobs when a job key is supplied", () =>
let jobs2!: Awaited<ReturnType<typeof getJobs>>;
for (let i = 0; i < 10; i++) {
jobs2 = await getJobs(pgPool);
if (jobs2[0].payload._cron.ts !== "2021-01-01T04:00:00.000Z") break;
if (jobs2[0].payload._cron.ts !== "2021-01-01T04:00:00.000Z") {
break;
}
await sleep(100);
}

Expand Down

0 comments on commit 68c2073

Please sign in to comment.