Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
continue waiting if expected container not yet ready for inspect
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
  • Loading branch information
gtardif committed Feb 26, 2021
1 parent e91947e commit 8f2af30
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion aci/e2e/e2e-aci_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8f2af30

Please sign in to comment.