Change to use c.Assert() instead of result.Assert()

Fix delete containers and make sure it prints errors correctly.
Rename Result.Fails to Result.Assert()
Create a constant for the default expected.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin
2016-08-16 17:51:38 -04:00
parent d7022f2b46
commit 243885808f
14 changed files with 86 additions and 47 deletions

View File

@@ -163,7 +163,7 @@ func (s *DockerSuite) TestAttachPausedContainer(c *check.C) {
dockerCmd(c, "pause", "test")
result := dockerCmdWithResult("attach", "test")
result.Assert(c, icmd.Expected{
c.Assert(result, icmd.Matches, icmd.Expected{
Error: "exit status 1",
ExitCode: 1,
Err: "You cannot attach to a paused container, unpause it first",