From a4520486b8c1c2cd7478dc023e6b6171e77a3da2 Mon Sep 17 00:00:00 2001 From: Roo Code Date: Wed, 5 Nov 2025 17:25:06 +0000 Subject: [PATCH] test: update LM Studio tests to match new error handling behavior --- src/api/providers/__tests__/lmstudio.spec.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/api/providers/__tests__/lmstudio.spec.ts b/src/api/providers/__tests__/lmstudio.spec.ts index 0adebdeea7..4b9ed9a8d8 100644 --- a/src/api/providers/__tests__/lmstudio.spec.ts +++ b/src/api/providers/__tests__/lmstudio.spec.ts @@ -123,7 +123,7 @@ describe("LmStudioHandler", () => { for await (const _chunk of stream) { // Should not reach here } - }).rejects.toThrow("Please check the LM Studio developer logs to debug what went wrong") + }).rejects.toThrow("LM Studio completion error: API Error") }) }) @@ -141,9 +141,7 @@ describe("LmStudioHandler", () => { it("should handle API errors", async () => { mockCreate.mockRejectedValueOnce(new Error("API Error")) - await expect(handler.completePrompt("Test prompt")).rejects.toThrow( - "Please check the LM Studio developer logs to debug what went wrong", - ) + await expect(handler.completePrompt("Test prompt")).rejects.toThrow("LM Studio completion error: API Error") }) it("should handle empty response", async () => {