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

simplify gh53564 test #54081

Merged
1 commit merged into from
Jun 12, 2021
Merged

simplify gh53564 test #54081

1 commit merged into from
Jun 12, 2021

Conversation

josalem
Copy link
Contributor

@josalem josalem commented Jun 11, 2021

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

@josalem josalem added test-bug Problem in test source code (most likely) test-enhancement Improvements of test source code labels Jun 11, 2021
@josalem josalem added this to the 6.0.0 milestone Jun 11, 2021
@josalem josalem requested review from noahfalk and davmason June 11, 2021 21:37
@josalem josalem self-assigned this Jun 11, 2021
@dotnet-issue-labeler
Copy link

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.

@ghost
Copy link

ghost commented Jun 11, 2021

Tagging subscribers to this area: @tarekgh, @tommcdon, @pjanotti
See info in area-owners.md if you want to be subscribed.

Issue Details

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

Author: josalem
Assignees: josalem
Labels:

area-System.Diagnostics.Tracing, test bug, test enhancement

Milestone: 6.0.0

Copy link
Member

@noahfalk noahfalk left a comment

Choose a reason for hiding this comment

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

LGTM

@ghost
Copy link

ghost commented Jun 11, 2021

Hello @josalem!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

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 (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 1b382e2 into dotnet:main Jun 12, 2021
josalem pushed a commit that referenced this pull request Jun 12, 2021
mmitche pushed a commit that referenced this pull request Jun 15, 2021
* 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]>
@ghost ghost locked as resolved and limited conversation to collaborators Jul 12, 2021
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Diagnostics.Tracing test-bug Problem in test source code (most likely) test-enhancement Improvements of test source code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants