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

main: rework the way the mock logger is passed #4196

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

mvo5
Copy link
Contributor

@mvo5 mvo5 commented Jun 6, 2024

Pass the mock logger directly to run() instead of mocking logrus.New. Doing the later leads to a data race when multiple parallel tests modify the (global) var logrusNew logrus.New.

Thanks to Tomas Hozza for reporting.

Pass the mock logger directly to `run()` instead of mocking
`logrus.New`. Doing the later leads to a data race when multiple
parallel tests modify the (global) `var logrusNew logrus.New`.

Thanks to Tomas Hozza for reporting.
Copy link
Member

@thozza thozza left a comment

Choose a reason for hiding this comment

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

👍

@mvo5 mvo5 enabled auto-merge (rebase) June 6, 2024 17:00
@mvo5 mvo5 merged commit 8ebefbd into osbuild:main Jun 6, 2024
42 of 67 checks passed
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