Browse code

integration-cli: fix health test

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>

Tonis Tiigi authored on 2018/05/24 05:44:15
Showing 1 changed files
... ...
@@ -90,7 +90,7 @@ func (s *DockerSuite) TestHealth(c *check.C) {
90 90
 	buildImageSuccessfully(c, "no_healthcheck", build.WithDockerfile(`FROM testhealth
91 91
 		HEALTHCHECK NONE`))
92 92
 
93
-	out, _ = dockerCmd(c, "inspect", "--format={{.ContainerConfig.Healthcheck.Test}}", "no_healthcheck")
93
+	out, _ = dockerCmd(c, "inspect", "--format={{.Config.Healthcheck.Test}}", "no_healthcheck")
94 94
 	c.Check(out, checker.Equals, "[NONE]\n")
95 95
 
96 96
 	// Enable the checks from the CLI