diff options
author | Tibor Vass <tibor@docker.com> | 2019-08-09 06:57:11 +0000 |
---|---|---|
committer | Tibor Vass <tibor@docker.com> | 2019-09-09 20:49:53 +0000 |
commit | 931edfe5e95ec2428274fb87e35602537dbabf53 (patch) | |
tree | 757d66657cfc36c4a41641a5fb553f819b871a5f /integration-cli/docker_cli_inspect_test.go | |
parent | e07a3f291799b084bbe4dc293026b94aead74b4c (diff) | |
download | docker-931edfe5e95ec2428274fb87e35602537dbabf53.tar.gz |
prepare for rm-gocheck script
Signed-off-by: Tibor Vass <tibor@docker.com>
Diffstat (limited to 'integration-cli/docker_cli_inspect_test.go')
-rw-r--r-- | integration-cli/docker_cli_inspect_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/integration-cli/docker_cli_inspect_test.go b/integration-cli/docker_cli_inspect_test.go index 620272f65f..22bf5ffd48 100644 --- a/integration-cli/docker_cli_inspect_test.go +++ b/integration-cli/docker_cli_inspect_test.go @@ -108,7 +108,8 @@ func (s *DockerSuite) TestInspectTypeFlagWithImage(c *check.C) { dockerCmd(c, "run", "--name=busybox", "-d", "busybox", "true") out, _ := dockerCmd(c, "inspect", "--type=image", "busybox") - c.Assert(out, checker.Not(checker.Contains), "State") // not an image JSON + // not an image JSON + c.Assert(out, checker.Not(checker.Contains), "State") } func (s *DockerSuite) TestInspectTypeFlagWithInvalidValue(c *check.C) { @@ -118,7 +119,7 @@ func (s *DockerSuite) TestInspectTypeFlagWithInvalidValue(c *check.C) { dockerCmd(c, "run", "--name=busybox", "-d", "busybox", "true") out, exitCode, err := dockerCmdWithError("inspect", "--type=foobar", "busybox") - c.Assert(err, checker.NotNil, check.Commentf("%s", exitCode)) + c.Assert(err, checker.NotNil, check.Commentf("%d", exitCode)) c.Assert(exitCode, checker.Equals, 1, check.Commentf("%s", err)) c.Assert(out, checker.Contains, "not a valid value for --type") } |