test(qa): show unexpected no-outbound messages · openclaw/openclaw@24d1af9
vincentkoc
·
2026-06-24
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -120,7 +120,7 @@ describe("qa suite transport helpers", () => {
|
120 | 120 | senderName: "OpenClaw QA", |
121 | 121 | }); |
122 | 122 | await expect(waitForNoOutbound(state, 1, { sinceIndex })).rejects.toThrow( |
123 | | -"expected no outbound messages, saw 1", |
| 123 | +"expected no outbound messages, saw 1: channel:qa-room:openclaw:current scenario reply", |
124 | 124 | ); |
125 | 125 | }); |
126 | 126 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -62,7 +62,14 @@ async function waitForNoOutbound(
|
62 | 62 | .messages.filter((message: QaBusMessage) => message.direction === "outbound") |
63 | 63 | .slice(options?.sinceIndex ?? 0); |
64 | 64 | if (outbound.length > 0) { |
65 | | -throw new Error(`expected no outbound messages, saw ${outbound.length}`); |
| 65 | +const summary = outbound |
| 66 | +.slice(0, 5) |
| 67 | +.map( |
| 68 | +(message: QaBusMessage) => |
| 69 | +`${message.conversation.kind}:${message.conversation.id}:${message.senderId}:${message.text}`, |
| 70 | +) |
| 71 | +.join(" | "); |
| 72 | +throw new Error(`expected no outbound messages, saw ${outbound.length}: ${summary}`); |
66 | 73 | } |
67 | 74 | } |
68 | 75 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。