From f2a34b67de38cff1fb6f7131e35ea656810221b8 Mon Sep 17 00:00:00 2001 From: Bob Dickinson Date: Mon, 6 Apr 2026 11:10:24 -0700 Subject: [PATCH] Fixed broken tests. One was broken by a merge from main, one was broken because the TLS verification changed. Without pinned deps (package lock) it's hard to track down the dep change actually caused this - fix was to use http instead of https example.com test urls. --- client/src/__tests__/proxyFetchEndpoint.test.ts | 6 +++--- client/src/components/__tests__/AuthDebugger.test.tsx | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/client/src/__tests__/proxyFetchEndpoint.test.ts b/client/src/__tests__/proxyFetchEndpoint.test.ts index 9deec8f6..f23f8d9f 100644 --- a/client/src/__tests__/proxyFetchEndpoint.test.ts +++ b/client/src/__tests__/proxyFetchEndpoint.test.ts @@ -47,7 +47,7 @@ describe("POST /fetch endpoint", () => { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ - url: "https://example.com/", + url: "http://example.com/", init: { method: "GET" }, }), }); @@ -64,7 +64,7 @@ describe("POST /fetch endpoint", () => { "X-MCP-Proxy-Auth": "Bearer wrong-token", }, body: JSON.stringify({ - url: "https://example.com/", + url: "http://example.com/", init: { method: "GET" }, }), }); @@ -79,7 +79,7 @@ describe("POST /fetch endpoint", () => { "X-MCP-Proxy-Auth": `Bearer ${TEST_TOKEN}`, }, body: JSON.stringify({ - url: "https://example.com/", + url: "http://example.com/", init: { method: "GET" }, }), }); diff --git a/client/src/components/__tests__/AuthDebugger.test.tsx b/client/src/components/__tests__/AuthDebugger.test.tsx index 328419d0..71eec04a 100644 --- a/client/src/components/__tests__/AuthDebugger.test.tsx +++ b/client/src/components/__tests__/AuthDebugger.test.tsx @@ -807,6 +807,7 @@ describe("AuthDebugger", () => { expect(mockDiscoverAuthorizationServerMetadata).toHaveBeenCalledWith( new URL("https://custom-auth.example.com/mcp/tenant"), + { fetchFn: undefined }, ); });