From fc17d9d7df7d6502e43350d4c6527f0df20ff437 Mon Sep 17 00:00:00 2001 From: Gemini Wen Date: Tue, 27 Jan 2026 19:22:45 +0800 Subject: [PATCH] chore: bump version to 0.1.61 and fix tests - Update VERSION from 0.1.46 to 0.1.61 - Remove ForceHTTP2 tests for OpenAI OAuth client (ForceHTTP2 was removed) - Update createOpenAIReqClient test to use new single-arg signature Co-Authored-By: Claude Opus 4.5 --- backend/cmd/server/VERSION | 2 +- .../internal/repository/req_client_pool_test.go | 14 +------------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/backend/cmd/server/VERSION b/backend/cmd/server/VERSION index 79e0dd8a..a2d633db 100644 --- a/backend/cmd/server/VERSION +++ b/backend/cmd/server/VERSION @@ -1 +1 @@ -0.1.46 +0.1.61 diff --git a/backend/internal/repository/req_client_pool_test.go b/backend/internal/repository/req_client_pool_test.go index cf7e8bd0..904ed4d6 100644 --- a/backend/internal/repository/req_client_pool_test.go +++ b/backend/internal/repository/req_client_pool_test.go @@ -77,21 +77,9 @@ func TestGetSharedReqClient_ImpersonateAndProxy(t *testing.T) { require.Equal(t, "http://proxy.local:8080|4s|true|false", buildReqClientKey(opts)) } -func TestCreateOpenAIReqClient_ForceHTTP2Enabled(t *testing.T) { - sharedReqClients = sync.Map{} - client := createOpenAIReqClient("https://auth.openai.com/oauth/token", "http://proxy.local:8080") - require.Equal(t, "2", forceHTTPVersion(t, client)) -} - -func TestCreateOpenAIReqClient_ForceHTTP2DisabledForHTTP(t *testing.T) { - sharedReqClients = sync.Map{} - client := createOpenAIReqClient("http://localhost/oauth/token", "http://proxy.local:8080") - require.Equal(t, "", forceHTTPVersion(t, client)) -} - func TestCreateOpenAIReqClient_Timeout120Seconds(t *testing.T) { sharedReqClients = sync.Map{} - client := createOpenAIReqClient("https://auth.openai.com/oauth/token", "http://proxy.local:8080") + client := createOpenAIReqClient("http://proxy.local:8080") require.Equal(t, 120*time.Second, client.GetClient().Timeout) }