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

test(client): Fix unusual race condition in tests #4316

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

pkoprda
Copy link
Contributor

@pkoprda pkoprda commented Dec 19, 2024

All Pull Requests:

Check all that apply:

  • Have you followed the guidelines in our Contributing document, including the instructions about commit messages?
  • No Sensitive Data in this change?
  • Is this PR to correct an issue?
  • Is this PR an enhancement?

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 the ignore_errors=True parameter in shutil.rmtree(home).

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-commenter
Copy link

codecov-commenter commented Dec 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.18%. Comparing base (1597f13) to head (b84118a).

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           
Flag Coverage Δ
unittests 77.17% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@m-horky m-horky left a comment

Choose a reason for hiding this comment

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

ACK

@m-horky
Copy link
Contributor

m-horky commented Dec 19, 2024

@xiangce The PR is ready to be merged 👍

@xiangce xiangce merged commit 91adb4e into RedHatInsights:master Dec 20, 2024
13 checks passed
@pkoprda pkoprda deleted the race-condition-test branch December 20, 2024 08:03
xiangce pushed a commit that referenced this pull request Jan 2, 2025
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)
xiangce pushed a commit that referenced this pull request Jan 2, 2025
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)
m-horky added a commit to m-horky/insights-ansible-playbook-verifier that referenced this pull request Jan 6, 2025
pkoprda pushed a commit to RedHatInsights/insights-ansible-playbook-verifier that referenced this pull request Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants