Skip to content

test(core): add comprehensive RetryManager test suite#1159

Open
abueide wants to merge 1 commit intotapi/retry-managerfrom
tapi/retry-manager-tests
Open

test(core): add comprehensive RetryManager test suite#1159
abueide wants to merge 1 commit intotapi/retry-managerfrom
tapi/retry-manager-tests

Conversation

@abueide
Copy link
Contributor

@abueide abueide commented Mar 10, 2026

Summary

  • Add 700-line test suite covering all RetryManager states and transitions
  • Tests cover: canRetry checks, handle429 rate limiting, handleTransientError backoff, reset, retry strategies (eager/lazy), autoFlush callbacks, and mixed error scenarios
  • 29 tests total, all passing

PR 4 of 5 in the TAPI backoff/retry stack. Depends on #1158 (RetryManager implementation).

Test plan

  • npx jest --testPathPattern="RetryManager" — 29 tests pass
  • npx eslint — 0 errors

🤖 Generated with Claude Code

Add 29 tests covering all RetryManager states and transitions:
canRetry, handle429 rate limiting, handleTransientError backoff,
reset, retry strategies (eager/lazy), autoFlush callbacks, and
mixed error scenarios.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant