test: specify heartbeat bootstrap files · openclaw/openclaw@6cd58ce
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -186,9 +186,8 @@ describe("resolveBootstrapContextForRun", () => {
|
186 | 186 | runKind: "heartbeat", |
187 | 187 | }); |
188 | 188 | |
189 | | -expect(files.length).toBeGreaterThan(0); |
190 | | -const nonHeartbeatFiles = files.filter((file) => file.name !== "HEARTBEAT.md"); |
191 | | -expect(nonHeartbeatFiles).toStrictEqual([]); |
| 189 | +expect(files.map((file) => file.name)).toStrictEqual(["HEARTBEAT.md"]); |
| 190 | +expect(files[0]?.content).toBe("check inbox"); |
192 | 191 | }); |
193 | 192 | |
194 | 193 | it("keeps bootstrap context empty in lightweight cron mode", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。