1
0
mirror of https://github.com/docker/cli.git synced 2026-01-13 18:22:35 +03:00

ineffassign: fix unused variables

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 63a0e88e8a61b5c0d5f698d5baf37f568ee01d50
Component: engine
This commit is contained in:
Sebastiaan van Stijn
2018-01-13 13:35:10 +01:00
parent c3d475f697
commit 2c5689d728
3 changed files with 5 additions and 4 deletions

View File

@@ -460,6 +460,7 @@ COPY file /file`
assert.Equal(c, http.StatusOK, res.StatusCode)
out, err := request.ReadBody(body)
require.NoError(c, err)
ids := getImageIDsFromBuild(c, out)
return ids[len(ids)-1]
@@ -498,6 +499,7 @@ ADD file /file`
assert.Equal(c, http.StatusOK, res.StatusCode)
out, err := request.ReadBody(body)
require.NoError(c, err)
ids := getImageIDsFromBuild(c, out)
return ids[len(ids)-1]

View File

@@ -1031,7 +1031,7 @@ func (s *DockerSwarmSuite) TestAPINetworkInspectWithScope(c *check.C) {
v := url.Values{}
v.Set("scope", "local")
status, body, err = d.SockRequest("GET", "/networks/"+name+"?"+v.Encode(), nil)
status, _, err = d.SockRequest("GET", "/networks/"+name+"?"+v.Encode(), nil)
c.Assert(err, checker.IsNil, check.Commentf(string(out)))
c.Assert(status, checker.Equals, http.StatusNotFound, check.Commentf(string(out)))
}

View File

@@ -467,9 +467,8 @@ func (s *DockerDaemonSuite) TestDaemonIPv6HostMode(c *check.C) {
c.Assert(err, checker.IsNil, check.Commentf("Could not run container: %s, %v", out, err))
out, err = s.d.Cmd("exec", "hostcnt", "ip", "-6", "addr", "show", "docker0")
out = strings.Trim(out, " \r\n'")
c.Assert(out, checker.Contains, "2001:db8:2::1")
c.Assert(err, checker.IsNil)
c.Assert(strings.Trim(out, " \r\n'"), checker.Contains, "2001:db8:2::1")
}
func (s *DockerDaemonSuite) TestDaemonLogLevelWrong(c *check.C) {