diff --git a/integration-cli/docker_api_inspect_test.go b/integration-cli/docker_api_inspect_test.go index dde0c244e2..5a3c160f7d 100644 --- a/integration-cli/docker_api_inspect_test.go +++ b/integration-cli/docker_api_inspect_test.go @@ -20,26 +20,15 @@ func (s *DockerAPISuite) TestInspectAPIContainerResponse(c *testing.T) { keysBase := []string{ "Id", "State", "Created", "Path", "Args", "Config", "Image", "NetworkSettings", "ResolvConfPath", "HostnamePath", "HostsPath", "LogPath", "Name", "Driver", "MountLabel", "ProcessLabel", "GraphDriver", + "Mounts", } - type acase struct { + cases := []struct { version string keys []string + }{ + {version: "v1.24", keys: keysBase}, } - - var cases []acase - - if testEnv.DaemonInfo.OSType == "windows" { - // Windows only supports 1.25 or later - cases = []acase{ - {"v1.25", append(keysBase, "Mounts")}, - } - } else { - cases = []acase{ - {"v1.24", append(keysBase, "Mounts")}, - } - } - for _, cs := range cases { body := getInspectBody(c, cs.version, cleanedContainerID) diff --git a/integration/system/info_linux_test.go b/integration/system/info_linux_test.go index 98b3367990..a6d8360914 100644 --- a/integration/system/info_linux_test.go +++ b/integration/system/info_linux_test.go @@ -31,7 +31,6 @@ func TestInfoBinaryCommits(t *testing.T) { func TestInfoAPIVersioned(t *testing.T) { ctx := testutil.StartSpan(baseContext, t) - // Windows only supports 1.25 or later res, body, err := req.Get(ctx, "/v1.24/info") assert.NilError(t, err)