Skip to content

Commit 6cafdf6

Browse files
Copilotlpcox
andauthored
fix(test): remove stale TestFormatResetAt from circuit_breaker_test.go
Agent-Logs-Url: https://github.com/github/gh-aw-mcpg/sessions/d27b974a-af44-4859-ad6d-9c8dc79425c0 Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
1 parent e8d7be7 commit 6cafdf6

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

internal/server/circuit_breaker_test.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -443,23 +443,6 @@ func TestCircuitBreakerState_String(t *testing.T) {
443443
}
444444
}
445445

446-
// TestFormatResetAt verifies the formatResetAt helper function.
447-
func TestFormatResetAt(t *testing.T) {
448-
t.Parallel()
449-
450-
t.Run("zero time returns 'unknown'", func(t *testing.T) {
451-
t.Parallel()
452-
assert.Equal(t, "unknown", formatResetAt(time.Time{}))
453-
})
454-
455-
t.Run("non-zero time includes RFC3339 timestamp and duration hint", func(t *testing.T) {
456-
t.Parallel()
457-
resetTime := time.Date(2026, 1, 1, 12, 0, 0, 0, time.UTC)
458-
result := formatResetAt(resetTime)
459-
assert.Contains(t, result, "2026-01-01T12:00:00Z", "should contain RFC3339-formatted time")
460-
assert.Contains(t, result, "in ", "should contain duration hint")
461-
})
462-
}
463446

464447
// TestIsRateLimitText_Direct directly verifies isRateLimitText with each pattern and edge cases.
465448
func TestIsRateLimitText_Direct(t *testing.T) {

0 commit comments

Comments
 (0)