From c5c98c31a184837c7f5b1f43d8ef18a676a8bf30 Mon Sep 17 00:00:00 2001 From: Doug Davis Date: Fri, 17 Jul 2015 06:46:37 -0700 Subject: [PATCH] Fix InspectExecID test The check for the end of the loop was off by one which is why we saw errors on the following inpsect() call instead of a timeout Signed-off-by: Doug Davis --- integration-cli/docker_cli_exec_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration-cli/docker_cli_exec_test.go b/integration-cli/docker_cli_exec_test.go index 2557ddf34c..f75edcb993 100644 --- a/integration-cli/docker_cli_exec_test.go +++ b/integration-cli/docker_cli_exec_test.go @@ -449,7 +449,7 @@ func (s *DockerSuite) TestInspectExecID(c *check.C) { if out != "[]" && out != "" { break } - if i == tries { + if i+1 == tries { c.Fatalf("ExecIDs should not be empty, got: %s", out) } time.Sleep(1 * time.Second)