test: chain channel save recovery · openclaw/openclaw@63c0f28
shakkernerd
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -139,10 +139,10 @@ describe("channel config actions", () => {
|
139 | 139 | |
140 | 140 | await handleChannelConfigSave(host); |
141 | 141 | |
142 | | -expect(host.lastError).toContain("Config hash mismatch"); |
| 142 | +expect(host.lastError).toBe("Error: Config hash mismatch"); |
143 | 143 | expect(host.configFormDirty).toBe(true); |
144 | 144 | expect(host.configForm).toEqual({ gateway: { mode: "local" } }); |
145 | 145 | expect(requireConfigSnapshot(host).config).toEqual({ gateway: { mode: "remote" } }); |
146 | | -expect(request.mock.calls.map(([method]) => method)).not.toContain("channels.status"); |
| 146 | +expect(request.mock.calls.map(([method]) => method)).toEqual(["config.set", "config.get"]); |
147 | 147 | }); |
148 | 148 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。