mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 20:14:30 +00:00
test (agents): cover empty-chunk timeout failover behavior
This commit is contained in:
@@ -108,4 +108,9 @@ describe("formatAssistantErrorText", () => {
|
||||
const msg = makeAssistantError("429 rate limit reached");
|
||||
expect(formatAssistantErrorText(msg)).toContain("rate limit reached");
|
||||
});
|
||||
|
||||
it("returns a friendly message for empty stream chunk errors", () => {
|
||||
const msg = makeAssistantError("request ended without sending any chunks");
|
||||
expect(formatAssistantErrorText(msg)).toBe("LLM request timed out.");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user