You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5085a97
Browse filesBrowse the repository at this point in the historyBrowse files
test(circuit-breaker): verify open circuit does not call the service
- Add a test with a call-counting service: once the circuit is open,
attemptRequest() must return the cached failure without calling the
service again. Previously a fallback and a real failing call returned
the same string, so ignoring the OPEN state went undetected.
- testEvaluateState computed "a failure long ago" with int arithmetic
(1000 * 1000 * 1000 * 1000 overflows to -727379968), which placed the
failure in the future. Use long literals and assert OPEN within the
retry period and HALF_OPEN after it.
0 commit comments