test: assert crestodian rescue audit entry · openclaw/openclaw@2175a0f
shakkernerd
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -101,8 +101,8 @@ describeLive("Crestodian live rescue channel smoke", () => {
|
101 | 101 | expect(config.agents?.defaults?.model).toMatchObject({ primary: "openai/gpt-5.5" }); |
102 | 102 | const auditPath = path.join(tempDir, "audit", "crestodian.jsonl"); |
103 | 103 | const auditLines = (await fs.readFile(auditPath, "utf8")).trim().split("\n"); |
104 | | -expect(auditLines.some((line) => line.includes('"operation":"config.setDefaultModel"'))).toBe( |
105 | | -true, |
| 104 | +expect(auditLines).toEqual( |
| 105 | +expect.arrayContaining([expect.stringContaining('"operation":"config.setDefaultModel"')]), |
106 | 106 | ); |
107 | 107 | }); |
108 | 108 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。