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

FakeTimeProvider usage update #5169

Merged
merged 8 commits into from
May 22, 2024
Merged

FakeTimeProvider usage update #5169

merged 8 commits into from
May 22, 2024

Conversation

dariusclay
Copy link
Contributor

@dariusclay dariusclay commented May 20, 2024

Closes #4912

Adds additional test and information regarding usage of FakeTimeProvider

Microsoft Reviewers: Open in CodeFlow

@dariusclay dariusclay marked this pull request as ready for review May 22, 2024 09:22
@dariusclay dariusclay changed the title FakeTimeProvider FakeTimeProvider usage update May 22, 2024
@dariusclay dariusclay enabled auto-merge (squash) May 22, 2024 12:16
@dariusclay dariusclay merged commit f580cdc into main May 22, 2024
6 checks passed
@dariusclay dariusclay deleted the dletterman/faketimeprovider branch May 22, 2024 12:21
Copy link
Contributor

@xakep139 xakep139 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines +389 to +392
var retries = 42;
var tries = 0;
var taskDelay = 0.5;
var delay = 1;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't use var for intrinsic types.

}

// Act
var result = simulatedPollyRetry();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions github-actions bot locked and limited conversation to collaborators Jun 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FakeTimeProvider.Advance fails to advance delays (at least in the case of Polly)
4 participants