Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Pick the hand-started run by its flag in the paused-bot routine test (#5947)

milind-soni0667e88871f2
diff --git a/server/routines.test.ts b/server/routines.test.ts
index 10a5af100b..01bae8b774 100644
--- a/server/routines.test.ts
+++ b/server/routines.test.ts
@@ -4102,7 +4102,7 @@ describe("turning a schedule back on, and a deleted bot's schedules", () => {
h.manager.runNow(routine.id);
await h.manager.tick();
- expect(h.manager.listRuns().at(-1)).toMatchObject({ status: "failed", error: paused });
+ expect(h.manager.listRuns().find((run) => run.manual)).toMatchObject({ status: "failed", error: paused });
expect(h.failed).toHaveLength(1);
});
});