Browse code

integration-cli: remove unused types and fields

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2019/08/06 08:54:52
Showing 2 changed files
... ...
@@ -2093,14 +2093,6 @@ func (s *DockerSuite) TestContainersAPICreateMountsCreate(c *testing.T) {
2093 2093
 		}...)
2094 2094
 	}
2095 2095
 
2096
-	type wrapper struct {
2097
-		containertypes.Config
2098
-		HostConfig containertypes.HostConfig
2099
-	}
2100
-	type createResp struct {
2101
-		ID string `json:"Id"`
2102
-	}
2103
-
2104 2096
 	ctx := context.Background()
2105 2097
 	apiclient := testEnv.APIClient()
2106 2098
 	for i, x := range cases {
... ...
@@ -7,7 +7,6 @@ import (
7 7
 	"reflect"
8 8
 	"strings"
9 9
 	"testing"
10
-	"time"
11 10
 
12 11
 	"github.com/docker/docker/integration-cli/cli"
13 12
 	"github.com/docker/docker/integration-cli/cli/build"
... ...
@@ -28,11 +27,8 @@ func (s *DockerSuite) TestCreateArgs(c *testing.T) {
28 28
 	out, _ = dockerCmd(c, "inspect", cleanedContainerID)
29 29
 
30 30
 	var containers []struct {
31
-		ID      string
32
-		Created time.Time
33
-		Path    string
34
-		Args    []string
35
-		Image   string
31
+		Path string
32
+		Args []string
36 33
 	}
37 34
 
38 35
 	err := json.Unmarshal([]byte(out), &containers)