Skip to content

Commit

Permalink
buildifier: Unset environment in unit test to resolve flake (#1160)
Browse files Browse the repository at this point in the history
  • Loading branch information
LINKIWI committed Apr 25, 2023
1 parent a4c276b commit 3dcc8d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions buildifier/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ func TestFindConfigPath(t *testing.T) {
t.Run(name, func(t *testing.T) {
for k, v := range tc.env {
os.Setenv(k, v)
defer os.Unsetenv(k)
}

tmp, err := ioutil.TempDir("", name+"*")
Expand Down

0 comments on commit 3dcc8d6

Please sign in to comment.