test: narrow scheduled turn cron assertion · openclaw/openclaw@233699c
steipete
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -538,7 +538,9 @@ describe("plugin scheduled turns", () => {
|
538 | 538 | const { name, schedule, ...stableCronAddBody } = getCronAddBody(); |
539 | 539 | expect(typeof name).toBe("string"); |
540 | 540 | expect(name.startsWith("plugin:loader-scheduler:agent:main:main:")).toBe(true); |
541 | | -expect(schedule.kind).toBe("at"); |
| 541 | +if (schedule.kind !== "at") { |
| 542 | +throw new Error(`Expected one-shot scheduled turn, got ${schedule.kind}`); |
| 543 | +} |
542 | 544 | expect(typeof schedule.at).toBe("string"); |
543 | 545 | expect(stableCronAddBody).toEqual({ |
544 | 546 | enabled: true, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。