mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05: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:
parent
c6110bd48f
commit
029ca9829d
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue