test: spell stream error sentinel · openclaw/openclaw@f82da6c
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -16,8 +16,7 @@ describe("buildStreamErrorAssistantMessage", () => {
|
16 | 16 | model, |
17 | 17 | errorMessage: "stream aborted by upstream host=internal.example.com", |
18 | 18 | }); |
19 | | -expect(Array.isArray(message.content)).toBe(true); |
20 | | -expect(message.content.length).toBeGreaterThan(0); |
| 19 | +expect(message.content).toStrictEqual([{ type: "text", text: STREAM_ERROR_FALLBACK_TEXT }]); |
21 | 20 | }); |
22 | 21 | |
23 | 22 | it("places only the sentinel in content and never echoes the raw error text", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。