Fix TestAPIDockerAPIVersion on windows
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
parent
1f7fd19cec
commit
8c7fdddf48
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ func (s *DockerSuite) TestAPIDockerAPIVersion(c *check.C) {
|
|||
defer server.Close()
|
||||
|
||||
// Test using the env var first
|
||||
result := cli.Docker(cli.Args("-H="+server.URL[7:], "version"), cli.WithEnvironmentVariables("DOCKER_API_VERSION=xxx"))
|
||||
result := cli.Docker(cli.Args("-H="+server.URL[7:], "version"), cli.WithEnvironmentVariables(appendBaseEnv(false, "DOCKER_API_VERSION=xxx")...))
|
||||
c.Assert(result, icmd.Matches, icmd.Expected{Out: "API version: xxx", ExitCode: 1})
|
||||
c.Assert(svrVersion, check.Equals, "/vxxx/version", check.Commentf("%s", result.Compare(icmd.Success)))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue