浏览代码

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 <dug@us.ibm.com>

Doug Davis 10 年之前
父节点
当前提交
c5c98c31a1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      integration-cli/docker_cli_exec_test.go

+ 1 - 1
integration-cli/docker_cli_exec_test.go

@@ -449,7 +449,7 @@ func (s *DockerSuite) TestInspectExecID(c *check.C) {
 		if out != "[]" && out != "<no value>" {
 		if out != "[]" && out != "<no value>" {
 			break
 			break
 		}
 		}
-		if i == tries {
+		if i+1 == tries {
 			c.Fatalf("ExecIDs should not be empty, got: %s", out)
 			c.Fatalf("ExecIDs should not be empty, got: %s", out)
 		}
 		}
 		time.Sleep(1 * time.Second)
 		time.Sleep(1 * time.Second)