Files
steipete--codexbar/Tests/CodexBarTests/UsageStoreTokenRetryPolicyTests.swift
2026-07-13 12:22:33 +08:00

13 lines
424 B
Swift

import CodexBarCore
import Foundation
import Testing
@testable import CodexBar
struct UsageStoreTokenRetryPolicyTests {
@Test
func `timed out token scans keep the fetch TTL while fast failures retry early`() {
#expect(!UsageStore.tokenFetchFailureAllowsEarlyRetry(CostUsageError.timedOut(seconds: 600)))
#expect(UsageStore.tokenFetchFailureAllowsEarlyRetry(CocoaError(.fileReadNoSuchFile)))
}
}