mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-25 03:45:46 -06:00
test(cron): cover force run mode
This commit is contained in:
@@ -758,6 +758,17 @@ describe("cron tool", () => {
|
||||
expect(readGatewayCall().params).toEqual({ id: "job-due", mode: "due" });
|
||||
});
|
||||
|
||||
it("supports force run mode", async () => {
|
||||
const tool = createTestCronTool();
|
||||
await tool.execute("call-force", {
|
||||
action: "run",
|
||||
jobId: "job-force",
|
||||
runMode: "force",
|
||||
});
|
||||
|
||||
expect(readGatewayCall().params).toEqual({ id: "job-force", mode: "force" });
|
||||
});
|
||||
|
||||
it("normalizes cron.add job payloads", async () => {
|
||||
const tool = createTestCronTool();
|
||||
await tool.execute("call2", {
|
||||
|
||||
Reference in New Issue
Block a user