forked from Shared/esg
Add health check and retry logic and circuit breaker
This commit is contained in:
@@ -14,6 +14,7 @@ describe('provider resilience helpers', () => {
|
||||
it('retries transport failures but not 429 or business rejects', () => {
|
||||
expect(isTransportRetryable({ code: 'ETIMEDOUT' })).toBe(true);
|
||||
expect(isTransportRetryable({ response: { status: 503 } })).toBe(true);
|
||||
expect(isTransportRetryable({ response: { status: 404 } })).toBe(true);
|
||||
expect(isTransportRetryable({ response: { status: 429 } })).toBe(false);
|
||||
expect(
|
||||
isTransportRetryable({
|
||||
|
||||
Reference in New Issue
Block a user