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
util/retry: increase timing tolerance for cancellation tests
The TestRetryWithMaxDuration test was flaky because the timing expectations
were too strict for test cases involving context cancellation and closer
channel closure. When these cancellation mechanisms are triggered during
a retry backoff period, the retry loop may not exit immediately, leading
to timing variance that exceeded the previous 20ms limit.
Increased maxExpectedTimeSpent from 20ms to 30ms for both:
- "errors with context that is canceled"
- "errors with opt.Closer that is closed"
This provides sufficient buffer for the inherent timing variability while
still validating that cancellation works promptly.
Fixes#154764
0 commit comments