diff --git a/packages/api/src/mcp/__tests__/MCPConnectionFactory.test.ts b/packages/api/src/mcp/__tests__/MCPConnectionFactory.test.ts index c2651261f1..528e635204 100644 --- a/packages/api/src/mcp/__tests__/MCPConnectionFactory.test.ts +++ b/packages/api/src/mcp/__tests__/MCPConnectionFactory.test.ts @@ -331,12 +331,14 @@ describe('MCPConnectionFactory', () => { expect(deleteCallOrder).toBeLessThan(createCallOrder); // Verify createFlow was called with fresh metadata + // 4th arg is the abort signal (undefined in this test since no signal was provided) expect(mockFlowManager.createFlow).toHaveBeenCalledWith( 'user123:test-server', 'mcp_oauth', expect.objectContaining({ codeVerifier: 'new-code-verifier-xyz', }), + undefined, ); }); });