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

replacing os.Setenv with t.Setenv in all unit tests #6139

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

gross2001
Copy link
Contributor

Fixes #6122
I used subtests (t.Run) in env_test.go because we should restore envs after every test from testTable.
All other changes seems obvious.

Signed-off-by: E.Muliukov <eldarradle29@gmail.com>
Copy link
Member

@tnqn tnqn left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @gross2001

@tnqn
Copy link
Member

tnqn commented Mar 25, 2024

/skip-all

@tnqn tnqn merged commit e4aff61 into antrea-io:main Mar 25, 2024
49 of 54 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.

Replace os.Setenv with t.Setenv in all unit tests
2 participants