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
3d4d960d
Commit
3d4d960d
authored
Apr 05, 2026
by
erio
Browse files
fix: gofmt formatting after merge
parent
794e8172
Changes
2
Hide whitespace changes
Inline
Side-by-side
backend/internal/service/admin_service_clear_error_test.go
View file @
3d4d960d
...
...
@@ -12,12 +12,12 @@ import (
type
accountRepoStubForClearAccountError
struct
{
mockAccountRepoForGemini
account
*
Account
clearErrorCalls
int
clearRateLimitCalls
int
clearAntigravityCalls
int
account
*
Account
clearErrorCalls
int
clearRateLimitCalls
int
clearAntigravityCalls
int
clearModelRateLimitCalls
int
clearTempUnschedCalls
int
clearTempUnschedCalls
int
}
func
(
r
*
accountRepoStubForClearAccountError
)
GetByID
(
ctx
context
.
Context
,
id
int64
)
(
*
Account
,
error
)
{
...
...
@@ -60,13 +60,13 @@ func TestAdminService_ClearAccountError_AlsoClearsRecoverableRuntimeState(t *tes
resetAt
:=
time
.
Now
()
.
Add
(
5
*
time
.
Minute
)
repo
:=
&
accountRepoStubForClearAccountError
{
account
:
&
Account
{
ID
:
31
,
Platform
:
PlatformOpenAI
,
Type
:
AccountTypeOAuth
,
Status
:
StatusError
,
ErrorMessage
:
"refresh failed"
,
RateLimitResetAt
:
&
resetAt
,
TempUnschedulableUntil
:
&
until
,
ID
:
31
,
Platform
:
PlatformOpenAI
,
Type
:
AccountTypeOAuth
,
Status
:
StatusError
,
ErrorMessage
:
"refresh failed"
,
RateLimitResetAt
:
&
resetAt
,
TempUnschedulableUntil
:
&
until
,
TempUnschedulableReason
:
"missing refresh token"
,
},
}
...
...
backend/internal/service/billing_service_test.go
View file @
3d4d960d
...
...
@@ -363,7 +363,6 @@ func TestCalculateImageCost(t *testing.T) {
require
.
InDelta
(
t
,
0.134
*
3
,
cost
.
ActualCost
,
1e-10
)
}
func
TestIsModelSupported
(
t
*
testing
.
T
)
{
svc
:=
newTestBillingService
()
...
...
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