Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
test(sse-auth): unique default apiKey per seeded connection (align with #3023 dedup)
diegosouzapw838c2cab885c
diff --git a/tests/unit/sse-auth.test.ts b/tests/unit/sse-auth.test.tsindex b89dbba18d..50576acc75 100644--- a/tests/unit/sse-auth.test.ts+++ b/tests/unit/sse-auth.test.ts@@ -33,7 +33,11 @@ async function seedConnection(provider: string, overrides: any = {}) {authType: overrides.authType || "apikey",name: overrides.name || `${provider}-${Math.random().toString(16).slice(2, 8)}`,email: overrides.email,- apiKey: overrides.apiKey || "sk-test",+ // Unique per connection by default — real accounts have distinct keys, and+ // createProviderConnection dedups by decrypted key value (#3023), so a shared+ // default would collapse multiple seeded connections into one and break+ // round-robin / least-used / fallback selection tests.+ apiKey: overrides.apiKey || `sk-test-${Math.random().toString(16).slice(2, 10)}`,accessToken: overrides.accessToken,refreshToken: overrides.refreshToken,isActive: overrides.isActive ?? true,