mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user