mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-16 15:23:29 +00:00
fix(jobs): reconcile durable fact inventory
This commit is contained in:
1 parent
75aa850eae
commit
fb02cf89b1
9 files changed
+308
-32
No files matched your search
@@ -6,7 +6,7 @@
|
||||
* test deliberately registers the production wrapper as the real worker
|
||||
* callback and reads the completed row back through pg-boss.
|
||||
*/
|
||||
import { PgBoss, type Job } from "pg-boss";
|
||||
import { PgBoss } from "pg-boss";
|
||||
import { afterAll, beforeAll, describe, expect, it } from "vitest";
|
||||
|
||||
import { jobDone } from "@/lib/jobs/job-outcome";
|
||||
@@ -51,7 +51,7 @@ describe("runJob durable pg-boss success output", () => {
|
||||
await boss.work<object, Record<string, unknown>>(
|
||||
QUEUE,
|
||||
{ pollingIntervalSeconds: 0.5 },
|
||||
runJob(QUEUE, async (_jobs: Job<object>[]) =>
|
||||
runJob(QUEUE, async () =>
|
||||
jobDone({
|
||||
provider: "google_health",
|
||||
outcome: "useful",
|
||||
|
||||
Reference in new issue
Block a user