mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-16 19:00:38 +09:00
fix: close remaining routine merge blockers
This commit is contained in:
parent
9093cfbe4f
commit
8dc98db717
7 changed files with 182 additions and 13 deletions
|
|
@ -430,6 +430,27 @@ describe("routine service live-execution coalescing", () => {
|
|||
expect(routineIssues).toHaveLength(1);
|
||||
});
|
||||
|
||||
it("fails the run and cleans up the execution issue when wakeup queueing fails", async () => {
|
||||
const { routine, svc } = await seedFixture({
|
||||
wakeup: async () => {
|
||||
throw new Error("queue unavailable");
|
||||
},
|
||||
});
|
||||
|
||||
const run = await svc.runRoutine(routine.id, { source: "manual" });
|
||||
|
||||
expect(run.status).toBe("failed");
|
||||
expect(run.failureReason).toContain("queue unavailable");
|
||||
expect(run.linkedIssueId).toBeNull();
|
||||
|
||||
const routineIssues = await db
|
||||
.select({ id: issues.id })
|
||||
.from(issues)
|
||||
.where(eq(issues.originId, routine.id));
|
||||
|
||||
expect(routineIssues).toHaveLength(0);
|
||||
});
|
||||
|
||||
it("accepts standard second-precision webhook timestamps for HMAC triggers", async () => {
|
||||
const { routine, svc } = await seedFixture();
|
||||
const { trigger, secretMaterial } = await svc.createTrigger(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue