fix: gofmt formatting after merge

This commit is contained in:
erio
2026-04-05 23:14:23 +08:00
parent 794e817208
commit 3d4d960d60
2 changed files with 12 additions and 13 deletions

View File

@@ -12,12 +12,12 @@ import (
type accountRepoStubForClearAccountError struct { type accountRepoStubForClearAccountError struct {
mockAccountRepoForGemini mockAccountRepoForGemini
account *Account account *Account
clearErrorCalls int clearErrorCalls int
clearRateLimitCalls int clearRateLimitCalls int
clearAntigravityCalls int clearAntigravityCalls int
clearModelRateLimitCalls int clearModelRateLimitCalls int
clearTempUnschedCalls int clearTempUnschedCalls int
} }
func (r *accountRepoStubForClearAccountError) GetByID(ctx context.Context, id int64) (*Account, error) { 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) resetAt := time.Now().Add(5 * time.Minute)
repo := &accountRepoStubForClearAccountError{ repo := &accountRepoStubForClearAccountError{
account: &Account{ account: &Account{
ID: 31, ID: 31,
Platform: PlatformOpenAI, Platform: PlatformOpenAI,
Type: AccountTypeOAuth, Type: AccountTypeOAuth,
Status: StatusError, Status: StatusError,
ErrorMessage: "refresh failed", ErrorMessage: "refresh failed",
RateLimitResetAt: &resetAt, RateLimitResetAt: &resetAt,
TempUnschedulableUntil: &until, TempUnschedulableUntil: &until,
TempUnschedulableReason: "missing refresh token", TempUnschedulableReason: "missing refresh token",
}, },
} }

View File

@@ -363,7 +363,6 @@ func TestCalculateImageCost(t *testing.T) {
require.InDelta(t, 0.134*3, cost.ActualCost, 1e-10) require.InDelta(t, 0.134*3, cost.ActualCost, 1e-10)
} }
func TestIsModelSupported(t *testing.T) { func TestIsModelSupported(t *testing.T) {
svc := newTestBillingService() svc := newTestBillingService()