test: clarify update cli completion warning assertions · openclaw/openclaw@3d70ffa
shakkernerd
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -646,9 +646,11 @@ describe("update-cli", () => {
|
646 | 646 | await updateCliShared.tryWriteCompletionCache(root, false); |
647 | 647 | |
648 | 648 | const logs = vi.mocked(runtimeCapture.log).mock.calls.map((call) => String(call[0])); |
649 | | -expect(logs.some((line) => line.includes("timed out after 30s"))).toBe(true); |
650 | | -expect(logs.some((line) => line.includes("openclaw completion --write-state"))).toBe(true); |
651 | | -expect(logs.some((line) => line.includes("Error: spawnSync"))).toBe(false); |
| 649 | +expect(logs).toEqual(expect.arrayContaining([expect.stringContaining("timed out after 30s")])); |
| 650 | +expect(logs).toEqual( |
| 651 | +expect.arrayContaining([expect.stringContaining("openclaw completion --write-state")]), |
| 652 | +); |
| 653 | +expect(logs).not.toEqual(expect.arrayContaining([expect.stringContaining("Error: spawnSync")])); |
652 | 654 | }); |
653 | 655 | |
654 | 656 | it("respawns into the updated package root before running post-update tasks", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。