mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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>
This commit is contained in:
parent
48a01a317c
commit
c5c98c31a1
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue