-
Notifications
You must be signed in to change notification settings - Fork 27
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
🐛 fixing flaky test test_checked_once_task_is_auto_removed #4527
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4527 +/- ##
========================================
- Coverage 86.5% 84.4% -2.2%
========================================
Files 1008 824 -184
Lines 43128 36582 -6546
Branches 998 530 -468
========================================
- Hits 37337 30892 -6445
- Misses 5561 5562 +1
+ Partials 230 128 -102
Flags with carried forward coverage won't be shown. Click here to find out more.
|
packages/service-library/tests/long_running_tasks/test_long_running_tasks_task.py
Outdated
Show resolved
Hide resolved
packages/service-library/tests/long_running_tasks/test_long_running_tasks_task.py
Outdated
Show resolved
Hide resolved
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.
Paired reviewed. Please re-assign when our discussion was revisited. Thank you.
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.
thanks for fixing this!
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.
Your last modifications seem more clear to me. thx!
Some extra minor comments
packages/service-library/tests/long_running_tasks/test_long_running_tasks_task.py
Outdated
Show resolved
Hide resolved
packages/service-library/tests/long_running_tasks/test_long_running_tasks_task.py
Outdated
Show resolved
Hide resolved
Code Climate has analyzed commit c592fea and detected 0 issues on this pull request. View more on Code Climate. |
Kudos, SonarCloud Quality Gate passed!
|
What do these changes do?
Very pesky edge case
FAILED tests/long_running_tasks/test_long_running_tasks_task.py::test_checked_once_task_is_auto_removed - Failed: DID NOT RAISE <class 'servicelib.long_running_tasks._errors.TaskNotFoundError'>
Pytest raises a BaseException that is not caught and retried by tenacity.
Also the test logic was not 100% accurate
Related issue/s
How to test
DevOps Checklist