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
fix: use TotalSeconds/TotalMilliseconds in WaitAndRetry timeout comparison
TimeSpan.Seconds returns only the seconds component (0-59), not the
total seconds. For timeouts >= 60 seconds (e.g. the default 60s),
.Seconds is 0 because it's exactly 1 minute. This caused WaitAndRetry
to always throw a timeout exception instead of retrying, with the
misleading message 'The request took longer than the 0 milliseconds
allowed'.
The fix uses .TotalSeconds and .TotalMilliseconds which return the
full value regardless of magnitude.
Added regression tests for timeouts >= 60s and correct millisecond
reporting in error messages.
Bumps version to 3.2.1.
0 commit comments