test(cron): cover force run mode · openclaw/openclaw@e91c179
vincentkoc
·
2026-06-19
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -758,6 +758,17 @@ describe("cron tool", () => {
|
758 | 758 | expect(readGatewayCall().params).toEqual({ id: "job-due", mode: "due" }); |
759 | 759 | }); |
760 | 760 | |
| 761 | +it("supports force run mode", async () => { |
| 762 | +const tool = createTestCronTool(); |
| 763 | +await tool.execute("call-force", { |
| 764 | +action: "run", |
| 765 | +jobId: "job-force", |
| 766 | +runMode: "force", |
| 767 | +}); |
| 768 | + |
| 769 | +expect(readGatewayCall().params).toEqual({ id: "job-force", mode: "force" }); |
| 770 | +}); |
| 771 | + |
761 | 772 | it("normalizes cron.add job payloads", async () => { |
762 | 773 | const tool = createTestCronTool(); |
763 | 774 | await tool.execute("call2", { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。