Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Assist: the schedule test checks that saving a task starts the sweep

Claudeb73ac5713141
diff --git a/tests/assist-schedules.test.ts b/tests/assist-schedules.test.ts
index 3c899ad4..4684a61c 100644
--- a/tests/assist-schedules.test.ts
+++ b/tests/assist-schedules.test.ts
@@ -58,6 +58,8 @@ describe("scheduled tasks", () => {
expect(() => sched.createSchedule({ ...base, title: "x", projectId: "nope", rule: { kind: "daily", time: "09:00" } }, now)).toThrow(/project/);
const s = sched.createSchedule({ ...base, title: "Every 6h", rule: { kind: "hours", every: 6 } }, now);
expect(s.rule).toEqual({ kind: "hours", every: 6, from: now });
+ // Saving a task makes sure the sweep is running (it also starts at boot).
+ expect(globalThis.__fuobeScheduleRunner).toBeDefined();
expect(s.nextRunAt).toBe(now + 6 * 3_600_000);
// Ask first has no cap; auto gets the default unless one is given.
expect(s.capUsd).toBeNull();