test: update UserAgent version assertion to match 1.18.4 default

This commit is contained in:
erio
2026-02-24 20:31:02 +08:00
parent f92ab48166
commit ca3e9336e1

View File

@@ -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 {