mirror of
https://github.com/docker/docs.git
synced 2026-03-27 22:38:54 +07:00
integration-cli: use remote daemon in proxy test
TestCliProxyDisableProxyUnixSock runs `docker info` by clearing env however if the daemon is set up to run in a different machine (e.g. Windows CI case) it does not make use of DOCKER_TEST_HOST and tries to connect unix sock. This fix injects DOCKER_HOST back to the test. Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
This commit is contained in:
committed by
Ahmet Alp Balkan
parent
c6110bd48f
commit
029ca9829d
@@ -9,7 +9,7 @@ import (
|
||||
|
||||
func TestCliProxyDisableProxyUnixSock(t *testing.T) {
|
||||
cmd := exec.Command(dockerBinary, "info")
|
||||
cmd.Env = []string{"HTTP_PROXY=http://127.0.0.1:9999"}
|
||||
cmd.Env = appendDockerHostEnv([]string{"HTTP_PROXY=http://127.0.0.1:9999"})
|
||||
|
||||
if out, _, err := runCommandWithOutput(cmd); err != nil {
|
||||
t.Fatal(err, out)
|
||||
|
||||
Reference in New Issue
Block a user