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:
@ -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)
|
||||
|
Reference in New Issue
Block a user