test: tighten inworld tts failure assertion · openclaw/openclaw@bf273c4
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -335,7 +335,9 @@ describe("inworldTTS", () => {
|
335 | 335 | it("releases the guarded dispatcher after failure", async () => { |
336 | 336 | const { release } = queueGuardedResponse(new Response("fail", { status: 500 })); |
337 | 337 | |
338 | | -await expect(inworldTTS({ text: "test", apiKey: "test-key" })).rejects.toThrow(); |
| 338 | +await expect(inworldTTS({ text: "test", apiKey: "test-key" })).rejects.toThrow( |
| 339 | +"Inworld TTS API error (500): fail", |
| 340 | +); |
339 | 341 | expect(release).toHaveBeenCalledTimes(1); |
340 | 342 | }); |
341 | 343 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。