Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
test: simulated time block on sleep #10551
test: simulated time block on sleep #10551
Changes from all commits
7d3b23e
6e6a025
9d9e104
4ee85a7
4767293
8f7ccb0
a661b60
b587221
c3c58c0
9a7261d
7d4ee46
bcfb1a3
b148b62
435b660
5649e70
4ac4a30
76ac2f5
57ad7c5
2d6aa6e
5576b7c
d3aa9c4
6a529a8
46325e4
a536cf2
27a68ca
8382a0b
9b0be70
a0b385e
5267e6d
c8ec0ff
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Same here - I assume the non-block is to give time for the callback to run. I guess I'm not sure where we'd advance and not run alarms, and I wonder how many of these cases are holdover from the differences not clearly being spelled out? Most of these tests are doing a "walk forward" and make sure my thing is called" check.
Is it just that pending alarms is not the right list? I had assumed pending alarms were the alarms which are due to fire and have not yet fired. I think I need to understand this PR better before reviewing.
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.
there's no other thread in this test; the callbacks are run by the dispatcher_.run() call below. If we called sleep() here it would deadlock since no thread would be alive to run the callbacks.