mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 20:30:44 +00:00
test: tighten inworld tts failure assertion
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user