mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 17:20:43 +00:00
test: clarify update cli completion warning assertions
This commit is contained in:
@@ -646,9 +646,11 @@ describe("update-cli", () => {
|
||||
await updateCliShared.tryWriteCompletionCache(root, false);
|
||||
|
||||
const logs = vi.mocked(runtimeCapture.log).mock.calls.map((call) => String(call[0]));
|
||||
expect(logs.some((line) => line.includes("timed out after 30s"))).toBe(true);
|
||||
expect(logs.some((line) => line.includes("openclaw completion --write-state"))).toBe(true);
|
||||
expect(logs.some((line) => line.includes("Error: spawnSync"))).toBe(false);
|
||||
expect(logs).toEqual(expect.arrayContaining([expect.stringContaining("timed out after 30s")]));
|
||||
expect(logs).toEqual(
|
||||
expect.arrayContaining([expect.stringContaining("openclaw completion --write-state")]),
|
||||
);
|
||||
expect(logs).not.toEqual(expect.arrayContaining([expect.stringContaining("Error: spawnSync")]));
|
||||
});
|
||||
|
||||
it("respawns into the updated package root before running post-update tasks", async () => {
|
||||
|
||||
Reference in New Issue
Block a user