Skip to content

Commit 09f6035

Browse files
committed
Unset DOCKER_HOST before TestDefaultEndpoint
Previously, this test would fail if DOCKER_HOST was set in the calling environment
1 parent e26abb3 commit 09f6035

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

utils_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ import (
77
)
88

99
func TestDefaultEndpoint(t *testing.T) {
10+
err := os.Unsetenv("DOCKER_HOST")
11+
if err != nil {
12+
t.Fatalf("Unable to unset DOCKER_HOST: %s", err)
13+
}
14+
1015
endpoint, err := getEndpoint()
1116
if err != nil {
1217
t.Fatalf("%s", err)

0 commit comments

Comments
 (0)