FakeTimeProvider.Advance fails to advance delays (at least in the case of Polly) #4912
Labels
area-fundamentals
bug
This issue describes a behavior which is not expected - a bug.
work in progress 🚧
Description
When using FakeTimerProvider in unit tests, retries configured in a ResiliencyPipeline are not executed.
The library maintainer believes the issue lies in FakeTimerProvider
App-vNext/Polly#1932
Reproduction Steps
Please see the minimal unit test repo
https://github.com/rcollette/PollyRetryFakeTimeProviderIssue
Expected behavior
Delays used in Poly should be advanced.
Actual behavior
They don't appear to be triggered.
Regression?
No response
Known Workarounds
No response
Configuration
.NET 8.0.101
Polly 8.2.1
Other information
I tried to debug down into the WakeWaiters/InvokeCallback/TimerCallback code but was not seeing why this was not triggering.
The text was updated successfully, but these errors were encountered: