Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename FakeTimeProvider #1349

Merged
merged 2 commits into from
Jun 24, 2023
Merged

Conversation

martincostello
Copy link
Member

  • Rename FakeTimeProvider to MockTimeProvider to make it easier to migrate to FakeTimeProvider when TimeProvider from Microsoft.Bcl.TimeProvider (or .NET 8) is used.
  • Fix test failure when running in Debug instead of Release caused by Microsoft.VisualStudio.TestPlatform.TestHost.DebugAssertException when Debug.Assert() fires.

Rename `FakeTimeProvider` to `MockTimeProvider` to make it easier to migrate to `FakeTimeProvider` when `TimeProvider` from Microsoft.Bcl.TimeProvider (or .NET 8) is used.
Fix test failure when running in Debug instead of Release caused by `Microsoft.VisualStudio.TestPlatform.TestHost.DebugAssertException` when `Debug.Assert()` fires.
@martincostello martincostello added the v8 Issues related to the new version 8 of the Polly library. label Jun 24, 2023
@martincostello martincostello added this to the v8.0.0 milestone Jun 24, 2023
@codecov
Copy link

codecov bot commented Jun 24, 2023

Codecov Report

Merging #1349 (b5a0b06) into main (a9bf3e9) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1349   +/-   ##
=======================================
  Coverage   83.59%   83.59%           
=======================================
  Files         270      270           
  Lines        6396     6396           
  Branches     1008     1008           
=======================================
  Hits         5347     5347           
  Misses        840      840           
  Partials      209      209           
Flag Coverage Δ
linux 83.59% <100.00%> (ø)
macos 83.59% <100.00%> (ø)
windows 83.59% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/Polly.Core/Utils/DisposeHelper.cs 100.00% <100.00%> (ø)

@martincostello martincostello merged commit 9fb7dab into App-vNext:main Jun 24, 2023
@martincostello martincostello deleted the rename-test-stub branch June 24, 2023 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v8 Issues related to the new version 8 of the Polly library.
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants