test: dedupe imessage retry mock reads · openclaw/openclaw@ffb2dcc
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -109,7 +109,7 @@ describe("monitorIMessageProvider watch.subscribe startup retry", () => {
|
109 | 109 | { timeoutMs: 10_000 }, |
110 | 110 | ); |
111 | 111 | expect(runtime.log).toHaveBeenCalledTimes(1); |
112 | | -expect(String(runtime.log.mock.calls.at(0)?.[0])).toContain( |
| 112 | +expect(String(runtime.log.mock.calls[0]?.[0])).toContain( |
113 | 113 | "imessage: watch.subscribe startup failed (attempt 1/3): Error: imsg rpc timeout (watch.subscribe); retrying", |
114 | 114 | ); |
115 | 115 | expect( |
@@ -141,7 +141,7 @@ describe("monitorIMessageProvider watch.subscribe startup retry", () => {
|
141 | 141 | expect((monitorError as Error).message).toContain("imsg rpc timeout (watch.subscribe)"); |
142 | 142 | expect(createIMessageRpcClientMock).toHaveBeenCalledTimes(3); |
143 | 143 | expect(runtime.error).toHaveBeenCalledTimes(1); |
144 | | -expect(String(runtime.error.mock.calls.at(0)?.[0])).toContain( |
| 144 | +expect(String(runtime.error.mock.calls[0]?.[0])).toContain( |
145 | 145 | "imessage: monitor failed: Error: imsg rpc timeout (watch.subscribe)", |
146 | 146 | ); |
147 | 147 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。