Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
ca3e9336
Commit
ca3e9336
authored
Feb 24, 2026
by
erio
Browse files
test: update UserAgent version assertion to match 1.18.4 default
parent
f92ab481
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/internal/pkg/antigravity/oauth_test.go
View file @
ca3e9336
...
@@ -676,7 +676,7 @@ func TestConstants_值正确(t *testing.T) {
...
@@ -676,7 +676,7 @@ func TestConstants_值正确(t *testing.T) {
if
RedirectURI
!=
"http://localhost:8085/callback"
{
if
RedirectURI
!=
"http://localhost:8085/callback"
{
t
.
Errorf
(
"RedirectURI 不匹配: got %s"
,
RedirectURI
)
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
())
t
.
Errorf
(
"UserAgent 不匹配: got %s"
,
GetUserAgent
())
}
}
if
SessionTTL
!=
30
*
time
.
Minute
{
if
SessionTTL
!=
30
*
time
.
Minute
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment