test: tighten subagent announce queue assertion · openclaw/openclaw@5abaf0d
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -369,11 +369,11 @@ describe("subagent announce seam flow", () => {
|
369 | 369 | }); |
370 | 370 | |
371 | 371 | expect(didAnnounce).toBe(true); |
372 | | -expect(queueEmbeddedPiMessageWithOutcomeMock).toHaveBeenCalledWith( |
373 | | - "session-origin-provider-steer", |
374 | | - expect.stringContaining("[Internal task completion event]"), |
375 | | - { steeringMode: "all" }, |
376 | | -); |
| 372 | +const queuedCall = queueEmbeddedPiMessageWithOutcomeMock.mock.calls[0]; |
| 373 | +expect(queuedCall?.[0]).toBe("session-origin-provider-steer"); |
| 374 | +expect(queuedCall?.[1]).toContain("[Internal task completion event]"); |
| 375 | +expect(queuedCall?.[1]).toContain("task: do thing"); |
| 376 | +expect(queuedCall?.[2]).toEqual({ steeringMode: "all" }); |
377 | 377 | expect(agentSpy).not.toHaveBeenCalled(); |
378 | 378 | }); |
379 | 379 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。