1
0
Fork 0
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:
Brian Goff 2015-07-27 14:13:25 -04:00
parent afac39d308
commit 693ba98cb9
28 changed files with 175 additions and 175 deletions

View file

@ -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")
}