Skip to content

Commit 844fa87

Browse files
committed
Avoid using os.Unsetenv
Unsetenv requires Go 1.4+
1 parent 7d4dccc commit 844fa87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
)
88

99
func TestDefaultEndpoint(t *testing.T) {
10-
err := os.Unsetenv("DOCKER_HOST")
10+
err := os.Setenv("DOCKER_HOST", "")
1111
if err != nil {
1212
t.Fatalf("Unable to unset DOCKER_HOST: %s", err)
1313
}

0 commit comments

Comments
 (0)