fix(antigravity): remove credits fallback from CountTokens, fix gofmt

CountTokens upstream API does not support enabledCreditTypes, so
remove the dead credits fallback path from ExecuteCount and delete
the unused tryAntigravityCreditsExecuteCount method. Fix gofmt on
credits test file.
This commit is contained in:
sususu98
2026-04-23 15:17:00 +08:00
parent 14d46a0a5d
commit 4de5c29f86
2 changed files with 0 additions and 49 deletions
@@ -127,7 +127,6 @@ func TestAntigravityShouldRetryNoCapacity_Standard503(t *testing.T) {
}
}
func TestInjectEnabledCreditTypes(t *testing.T) {
body := []byte(`{"model":"claude-sonnet-4-6","request":{}}`)
got := injectEnabledCreditTypes(body)
@@ -158,7 +157,6 @@ func TestParseRetryDelay_HumanReadableDuration(t *testing.T) {
}
}
func TestAntigravityExecute_RetriesTransient429ResourceExhausted(t *testing.T) {
resetAntigravityCreditsRetryState()
t.Cleanup(resetAntigravityCreditsRetryState)