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> Upstream-commit: c5c98c31a184837c7f5b1f43d8ef18a676a8bf30 Component: engine
This commit is contained in:
@ -449,7 +449,7 @@ func (s *DockerSuite) TestInspectExecID(c *check.C) {
|
||||
if out != "[]" && out != "<no value>" {
|
||||
break
|
||||
}
|
||||
if i == tries {
|
||||
if i+1 == tries {
|
||||
c.Fatalf("ExecIDs should not be empty, got: %s", out)
|
||||
}
|
||||
time.Sleep(1 * time.Second)
|
||||
|
||||
Reference in New Issue
Block a user