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

doit: simplify tests by using t.Setenv #1422

Merged
merged 1 commit into from
Oct 3, 2023
Merged

doit: simplify tests by using t.Setenv #1422

merged 1 commit into from
Oct 3, 2023

Conversation

alexandear
Copy link
Contributor

This PR simplifies tests.

From the doc:

Setenv calls os.Setenv(key, value) and uses Cleanup to restore the environment variable to its original value after the test.

Copy link
Member

@andrewsomething andrewsomething left a comment

Choose a reason for hiding this comment

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

👍 Nice! Good catch

@andrewsomething andrewsomething merged commit 59e4c38 into digitalocean:main Oct 3, 2023
6 checks passed
@alexandear alexandear deleted the doit-use-t-setenv branch October 3, 2023 20:04
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