Commit da44b47
Add test verifying transient network errors ARE retried
Complements the "does not retry certificate errors" test by explicitly
verifying that transient errors DO trigger retry logic and eventually succeed.
Tests 5 key transient error types from the PR:
- ETIMEDOUT (timeout)
- ECONNRESET (connection reset)
- socket hang up
- premature close
- getaddrinfo ENOTFOUND (DNS failure)
Each error is tested to ensure:
1. The error triggers a retry (mockRequestFn called 2x)
2. The request eventually succeeds after retry
This confirms the distinction: transient errors retry, permanent errors don't.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 25e6449 commit da44b47
1 file changed
+48
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
375 | 423 | | |
376 | 424 | | |
377 | 425 | | |
| |||
0 commit comments