MCPcopy Create free account
hub / github.com/anus-dev/ANUS / runRetry

Function runRetry

packages/core/src/utils/retry.test.ts:188–193  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

186
187 // Run retryWithBackoff multiple times to observe jitter
188 const runRetry = () =>
189 retryWithBackoff(mockFn, {
190 maxAttempts: 2, // Only one retry, so one delay
191 initialDelayMs: 100,
192 maxDelayMs: 1000,
193 });
194
195 // We expect rejections as mockFn fails 5 times
196 const promise1 = runRetry();

Callers 1

retry.test.tsFile · 0.85

Calls 1

retryWithBackoffFunction · 0.85

Tested by

no test coverage detected