mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Don't pass check.C to dockerCmdWithError
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
parent
afac39d308
commit
693ba98cb9
28 changed files with 175 additions and 175 deletions
|
|
@ -25,7 +25,7 @@ func (s *DockerSuite) TestPortHostBinding(c *check.C) {
|
|||
|
||||
dockerCmd(c, "rm", "-f", firstID)
|
||||
|
||||
if _, _, err := dockerCmdWithError(c, "run", "--net=host", "busybox",
|
||||
if _, _, err := dockerCmdWithError("run", "--net=host", "busybox",
|
||||
"nc", "localhost", "9876"); err == nil {
|
||||
c.Error("Port is still bound after the Container is removed")
|
||||
}
|
||||
|
|
@ -49,7 +49,7 @@ func (s *DockerSuite) TestPortExposeHostBinding(c *check.C) {
|
|||
|
||||
dockerCmd(c, "rm", "-f", firstID)
|
||||
|
||||
if _, _, err = dockerCmdWithError(c, "run", "--net=host", "busybox",
|
||||
if _, _, err = dockerCmdWithError("run", "--net=host", "busybox",
|
||||
"nc", "localhost", strings.TrimSpace(exposedPort)); err == nil {
|
||||
c.Error("Port is still bound after the Container is removed")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue