mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 18:14:46 +00:00
test: spell stream error sentinel
This commit is contained in:
@@ -16,8 +16,7 @@ describe("buildStreamErrorAssistantMessage", () => {
|
||||
model,
|
||||
errorMessage: "stream aborted by upstream host=internal.example.com",
|
||||
});
|
||||
expect(Array.isArray(message.content)).toBe(true);
|
||||
expect(message.content.length).toBeGreaterThan(0);
|
||||
expect(message.content).toStrictEqual([{ type: "text", text: STREAM_ERROR_FALLBACK_TEXT }]);
|
||||
});
|
||||
|
||||
it("places only the sentinel in content and never echoes the raw error text", () => {
|
||||
|
||||
Reference in New Issue
Block a user