test: tighten bootstrap context assertion · openclaw/openclaw@38472ca
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -170,8 +170,9 @@ describe("resolveBootstrapContextForRun", () => {
|
170 | 170 | |
171 | 171 | const bootstrapFileNames = result.bootstrapFiles.map((file) => file.name); |
172 | 172 | expect(bootstrapFileNames).toContain("BOOTSTRAP.md"); |
173 | | -const contextFileNames = result.contextFiles.map((file) => path.basename(file.path)); |
174 | | -expect(contextFileNames).toEqual(expect.arrayContaining(["BOOTSTRAP.md", "AGENTS.md"])); |
| 173 | +const contextFileNames = new Set(result.contextFiles.map((file) => path.basename(file.path))); |
| 174 | +expect(contextFileNames.has("BOOTSTRAP.md")).toBe(true); |
| 175 | +expect(contextFileNames.has("AGENTS.md")).toBe(true); |
175 | 176 | }); |
176 | 177 | |
177 | 178 | it("uses heartbeat-only bootstrap files in lightweight heartbeat mode", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。