-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
simplify gh53564 test #54081
simplify gh53564 test #54081
Conversation
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to this area: @tarekgh, @tommcdon, @pjanotti Issue DetailsThe initial version relied too heavily on sleep timing. This does away with that and explicitly sets an event when the success condition has been met. I'll update the 5.0 and 3.1 PRs with this patch on approval.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hello @josalem! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
* Fix #53564 * default internal state to DateTime.MaxValue * re-check IsEnabled after not holding lock * add test for setting interval to 0 * simplify fix to just a for loop * remove one more line * Remove loop * Update test to match #54081 Co-authored-by: John Salem <[email protected]>
The initial version relied too heavily on sleep timing. This does away with that and explicitly sets an event when the success condition has been met.
I'll update the 5.0 and 3.1 PRs with this patch on approval.
CC @janvorli @tommcdon