-
Notifications
You must be signed in to change notification settings - Fork 117
[bugfix] Make test_cancel_(with_grace|term_ignore) unit tests more robust
#2100
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
[bugfix] Make test_cancel_(with_grace|term_ignore) unit tests more robust
#2100
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2100 +/- ##
=======================================
Coverage 86.30% 86.30%
=======================================
Files 53 53
Lines 9352 9352
=======================================
Hits 8071 8071
Misses 1281 1281 Continue to review full report at Codecov.
|
jjotero
left a comment
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.
Since this code shows up twice in here, would it make sense to make this a function that takes anstdout and returns the sleep_pid?
jjotero
left a comment
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.
Just a very minor comment
jjotero
left a comment
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.
Looks good except for that get_sleep_pid function that is defined twice.
jjotero
left a comment
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
- Move function definition closer to its use - Improve names
vkarak
left a comment
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.
I just did a couple of minor improvements.
test_cancel_(with_grace|term_ignore) more robusttest_cancel_(with_grace|term_ignore) unit tests more robust
Fixes #2069