From bf273c451aef901d8909255c5e040ee0f7523cf5 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 9 May 2026 01:42:45 +0100 Subject: [PATCH] test: tighten inworld tts failure assertion --- extensions/inworld/tts.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/inworld/tts.test.ts b/extensions/inworld/tts.test.ts index 33f57b6ac99..71e922bd4aa 100644 --- a/extensions/inworld/tts.test.ts +++ b/extensions/inworld/tts.test.ts @@ -335,7 +335,9 @@ describe("inworldTTS", () => { it("releases the guarded dispatcher after failure", async () => { const { release } = queueGuardedResponse(new Response("fail", { status: 500 })); - await expect(inworldTTS({ text: "test", apiKey: "test-key" })).rejects.toThrow(); + await expect(inworldTTS({ text: "test", apiKey: "test-key" })).rejects.toThrow( + "Inworld TTS API error (500): fail", + ); expect(release).toHaveBeenCalledTimes(1); }); });