From 43ea03002fd9d10f31631504be69b8b73f40a43a Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 6 Aug 2019 01:54:52 +0200 Subject: [PATCH] integration-cli: remove unused types and fields Signed-off-by: Sebastiaan van Stijn --- integration-cli/docker_api_containers_test.go | 8 -------- integration-cli/docker_cli_create_test.go | 8 ++------ 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/integration-cli/docker_api_containers_test.go b/integration-cli/docker_api_containers_test.go index c6e967d496..725d3225d3 100644 --- a/integration-cli/docker_api_containers_test.go +++ b/integration-cli/docker_api_containers_test.go @@ -2093,14 +2093,6 @@ func (s *DockerSuite) TestContainersAPICreateMountsCreate(c *testing.T) { }...) } - type wrapper struct { - containertypes.Config - HostConfig containertypes.HostConfig - } - type createResp struct { - ID string `json:"Id"` - } - ctx := context.Background() apiclient := testEnv.APIClient() for i, x := range cases { diff --git a/integration-cli/docker_cli_create_test.go b/integration-cli/docker_cli_create_test.go index e75e8bbb80..87375a2342 100644 --- a/integration-cli/docker_cli_create_test.go +++ b/integration-cli/docker_cli_create_test.go @@ -7,7 +7,6 @@ import ( "reflect" "strings" "testing" - "time" "github.com/docker/docker/integration-cli/cli" "github.com/docker/docker/integration-cli/cli/build" @@ -28,11 +27,8 @@ func (s *DockerSuite) TestCreateArgs(c *testing.T) { out, _ = dockerCmd(c, "inspect", cleanedContainerID) var containers []struct { - ID string - Created time.Time - Path string - Args []string - Image string + Path string + Args []string } err := json.Unmarshal([]byte(out), &containers)