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

Change tests to use t.Setenv instead of os.Setenv #65

Merged
merged 1 commit into from Aug 16, 2022

Conversation

samcoe
Copy link
Contributor

@samcoe samcoe commented Aug 10, 2022

Now that we are using go 1.18 we can use t.Setenv to safely set environment variables in tests without worrying about them not getting unset. This PR changes our tests to use this new functionality.

@samcoe samcoe self-assigned this Aug 10, 2022
@samcoe samcoe requested a review from vilmibm August 10, 2022 13:41
@samcoe samcoe merged commit 198075a into trunk Aug 16, 2022
@samcoe samcoe deleted the testing-env-cleanup branch August 16, 2022 06:03
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.

None yet

1 participant