-
Notifications
You must be signed in to change notification settings - Fork 185
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(client): Fix unusual race condition in tests #4316
Conversation
This change fixes an occasional test failure due to a race condition with the gpg command. The tests in `test_crypto.py` were updated to include the `ignore_errors=True` parameter in `shutil.rmtree(home)`. Signed-off-by: pkoprda <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4316 +/- ##
=======================================
Coverage 77.18% 77.18%
=======================================
Files 765 765
Lines 41770 41770
Branches 8821 8821
=======================================
Hits 32240 32240
Misses 8463 8463
Partials 1067 1067
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
ACK
@xiangce The PR is ready to be merged 👍 |
This change fixes an occasional test failure due to a race condition with the gpg command. The tests in `test_crypto.py` were updated to include the `ignore_errors=True` parameter in `shutil.rmtree(home)`. Signed-off-by: pkoprda <[email protected]> (cherry picked from commit 91adb4e)
This change fixes an occasional test failure due to a race condition with the gpg command. The tests in `test_crypto.py` were updated to include the `ignore_errors=True` parameter in `shutil.rmtree(home)`. Signed-off-by: pkoprda <[email protected]> (cherry picked from commit 91adb4e) (cherry picked from commit 2e0e599)
All Pull Requests:
Check all that apply:
Complete Description of Additions/Changes:
This change fixes an occasional test failure due to a race condition with the gpg command. The tests in
test_crypto.py
were updated to include theignore_errors=True
parameter inshutil.rmtree(home)
.