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: mocks LimaUser to fix race condition in support bundle unit tests #450

Merged
merged 1 commit into from
Jun 13, 2023

Conversation

sam-berning
Copy link
Contributor

Issue #, if available: #447

Description of changes:

There was a race condition in the unit tests for support-bundle generate caused by Lima's osutil.LimaUser not being thread-safe. I don't think there's really a need to make it thread-safe, so I think it's easier to just wrap and mock it for the unit tests, which I've done here.

Testing done:

make test-unit
  • I've reviewed the guidance in CONTRIBUTING.md

License Acceptance

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Signed-off-by: Sam Berning <bernings@amazon.com>
@sam-berning sam-berning mentioned this pull request Jun 13, 2023
@sam-berning sam-berning merged commit 9f4b87c into runfinch:main Jun 13, 2023
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.

2 participants