mirror of
https://github.com/moby/moby.git
synced 2025-07-30 18:23:29 +03:00
fix some ineffectual assignments
to make goreportcard a bit happier
https://goreportcard.com/report/github.com/docker/docker
also found that `TestCpToErrDstParentNotExists()` was
partially broken, because a `runDockerCp()` was inadvertently
removed in f26a31e80c
`TestDaemonRestartSaveContainerExitCode()` didn't verify
the actual _Error_ message, so added that to the test,
and updated the test to take into account that the
"experimental" CI enables `--init` on containers.
`TestVolumeCLICreateOptionConflict()` only checked
for an error to occur, but didn't validate if the
error was due to conflicting options.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@ -363,7 +363,7 @@ func (s *DockerSuite) TestExecInspectID(c *check.C) {
|
||||
// result in a 404 (not 'container not running')
|
||||
out, ec := dockerCmd(c, "rm", "-f", id)
|
||||
c.Assert(ec, checker.Equals, 0, check.Commentf("error removing container: %s", out))
|
||||
sc, body, err = request.SockRequest("GET", "/exec/"+execID+"/json", nil, daemonHost())
|
||||
sc, body, _ = request.SockRequest("GET", "/exec/"+execID+"/json", nil, daemonHost())
|
||||
c.Assert(sc, checker.Equals, http.StatusNotFound, check.Commentf("received status != 404: %d\n%s", sc, body))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user