From ca3e9336e11c2db3e09fc6881ec1b3c6ea698874 Mon Sep 17 00:00:00 2001 From: erio Date: Tue, 24 Feb 2026 20:31:02 +0800 Subject: [PATCH] test: update UserAgent version assertion to match 1.18.4 default --- backend/internal/pkg/antigravity/oauth_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/internal/pkg/antigravity/oauth_test.go b/backend/internal/pkg/antigravity/oauth_test.go index 78184941..d8f2b098 100644 --- a/backend/internal/pkg/antigravity/oauth_test.go +++ b/backend/internal/pkg/antigravity/oauth_test.go @@ -676,7 +676,7 @@ func TestConstants_值正确(t *testing.T) { if RedirectURI != "http://localhost:8085/callback" { t.Errorf("RedirectURI 不匹配: got %s", RedirectURI) } - if GetUserAgent() != "antigravity/1.84.2 windows/amd64" { + if GetUserAgent() != "antigravity/1.18.4 windows/amd64" { t.Errorf("UserAgent 不匹配: got %s", GetUserAgent()) } if SessionTTL != 30*time.Minute {