mirror of
https://github.com/docker/cli.git
synced 2026-09-27 01:40:31 -04:00
Use TLS for tests if needed
Signed-off-by: Christopher Crone <christopher.crone@docker.com> Upstream-commit: 0bdba0e91a072ee2cdecb4e632c13f187eb88e9c Component: engine
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/docker/docker/client"
|
||||
"github.com/docker/docker/integration-cli/checker"
|
||||
"github.com/docker/docker/integration-cli/cli"
|
||||
"github.com/go-check/check"
|
||||
@@ -131,8 +129,7 @@ func (s *DockerSuite) TestKillStoppedContainerAPIPre120(c *check.C) {
|
||||
testRequires(c, DaemonIsLinux) // Windows only supports 1.25 or later
|
||||
runSleepingContainer(c, "--name", "docker-kill-test-api", "-d")
|
||||
dockerCmd(c, "stop", "docker-kill-test-api")
|
||||
var httpClient *http.Client
|
||||
cli, err := client.NewClient(daemonHost(), "v1.19", httpClient, nil)
|
||||
cli, err := NewEnvClientWithVersion("v1.19")
|
||||
c.Assert(err, check.IsNil)
|
||||
defer cli.Close()
|
||||
err = cli.ContainerKill(context.Background(), "docker-kill-test-api", "SIGKILL")
|
||||
|
||||
Reference in New Issue
Block a user