From 29d21388d5119d12a7433a32914bf96d916afdf5 Mon Sep 17 00:00:00 2001 From: John Howard Date: Wed, 2 Nov 2016 09:43:29 -0700 Subject: [PATCH] Fix TestAPIClientVersionOldNotSupported Signed-off-by: John Howard --- integration-cli/docker_api_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/integration-cli/docker_api_test.go b/integration-cli/docker_api_test.go index 00fd1efc55..45cd3a2580 100644 --- a/integration-cli/docker_api_test.go +++ b/integration-cli/docker_api_test.go @@ -5,6 +5,7 @@ import ( "net/http" "net/http/httptest" "net/http/httputil" + "runtime" "strconv" "strings" "time" @@ -64,6 +65,12 @@ func (s *DockerSuite) TestAPIClientVersionNewerThanServer(c *check.C) { } func (s *DockerSuite) TestAPIClientVersionOldNotSupported(c *check.C) { + if daemonPlatform != runtime.GOOS { + c.Skip("Daemon platform doesn't match test platform") + } + if api.MinVersion == api.DefaultVersion { + c.Skip("API MinVersion==DefaultVersion") + } v := strings.Split(api.MinVersion, ".") vMinInt, err := strconv.Atoi(v[1]) c.Assert(err, checker.IsNil)