1
0
mirror of https://github.com/moby/moby.git synced 2025-07-29 07:21:35 +03:00

Use TLS for tests if needed

Signed-off-by: Christopher Crone <christopher.crone@docker.com>
This commit is contained in:
Christopher Crone
2017-09-08 17:17:28 +02:00
parent dc6ddfa841
commit 0bdba0e91a
8 changed files with 22 additions and 17 deletions

View File

@ -1372,8 +1372,7 @@ func (s *DockerSuite) TestContainerAPICreateNoHostConfig118(c *check.C) {
Image: "busybox",
}
var httpClient *http.Client
cli, err := client.NewClient(daemonHost(), "v1.18", httpClient, map[string]string{})
cli, err := NewEnvClientWithVersion("v1.18")
_, err = cli.ContainerCreate(context.Background(), &config, &containertypes.HostConfig{}, &networktypes.NetworkingConfig{}, "")
c.Assert(err, checker.IsNil)