mirror of https://github.com/docker/compose.git
continue waiting if expected container not yet ready for inspect
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
This commit is contained in:
parent
e91947e4a5
commit
8f2af3011a
|
@ -977,7 +977,10 @@ func getContainerName(stdout string) string {
|
|||
|
||||
func waitForStatus(t *testing.T, c *E2eCLI, containerID string, statuses ...string) {
|
||||
checkStopped := func(logt poll.LogT) poll.Result {
|
||||
res := c.RunDockerCmd("inspect", containerID)
|
||||
res := c.RunDockerOrExitError("inspect", containerID)
|
||||
if res.Error != nil {
|
||||
return poll.Continue("Error while inspecting container %s: %s", containerID, res.Combined())
|
||||
}
|
||||
containerInspect, err := parseContainerInspect(res.Stdout())
|
||||
assert.NilError(t, err)
|
||||
for _, status := range statuses {
|
||||
|
|
Loading…
Reference in New Issue