test: dedupe subagent announce mock reads · openclaw/openclaw@9c3e08b
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -234,7 +234,7 @@ describe("subagent-announce-queue", () => {
|
234 | 234 | parentBusy = false; |
235 | 235 | await vi.advanceTimersByTimeAsync(250); |
236 | 236 | expect(send).toHaveBeenCalledTimes(1); |
237 | | -expect(send.mock.calls.at(0)?.[0]?.prompt).toBe("child completed"); |
| 237 | +expect(send.mock.calls[0]?.[0]?.prompt).toBe("child completed"); |
238 | 238 | }); |
239 | 239 | |
240 | 240 | it("preserves an existing defer hook when the same queue is reused without one", async () => { |
@@ -328,7 +328,7 @@ describe("subagent-announce-queue", () => {
|
328 | 328 | |
329 | 329 | await vi.advanceTimersByTimeAsync(1); |
330 | 330 | expect(send).toHaveBeenCalledTimes(1); |
331 | | -expect(send.mock.calls.at(0)?.[0]?.prompt).toBe("child completed after stale busy state"); |
| 331 | +expect(send.mock.calls[0]?.[0]?.prompt).toBe("child completed after stale busy state"); |
332 | 332 | }); |
333 | 333 | |
334 | 334 | it("uses debounce floor for retries when debounce exceeds backoff", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。