Skip to content

Commit

Permalink
Merge pull request moby#27991 from Microsoft/jjh/testapiclientversion…
Browse files Browse the repository at this point in the history
…oldnotsupported

Fix TestAPIClientVersionOldNotSupported
  • Loading branch information
tiborvass authored Nov 2, 2016
2 parents d0d0f98 + 29d2138 commit ecd806c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions integration-cli/docker_api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"net/http"
"net/http/httptest"
"net/http/httputil"
"runtime"
"strconv"
"strings"
"time"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ecd806c

Please sign in to comment.