microsoft / service-fabric-services-and-actors-dotnet

Reliable Services and Reliable Actors are Service Fabric application frameworks for building highly-scalable distributed cloud applications.
Other
269 stars 113 forks source link

Fix CancelOnTimerWithLargeRetryDelay test flakiness due to Stopwatch imprecision #384

Closed gobradovic closed 2 months ago

gobradovic commented 2 months ago

Port of following PR: https://github.com/microsoft/service-fabric-services-and-actors-dotnet/pull/381

CancelOnTimerWithLargeRetryDelay fails on some environments due to the fact that Stopwatch class may report incorrect timing results on different processors, as noted in official documentation: https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.stopwatch?view=net-8.0

Internal ADO work item: https://dev.azure.com/msazure/One/_workitems/edit/29276368