Skip to content

Commit

Permalink
Merge pull request #49220 from thaJeztah/touch_up_IsInState
Browse files Browse the repository at this point in the history
integration/internal/container: IsInState: touch up error-logs
  • Loading branch information
thaJeztah authored Jan 7, 2025
2 parents 9e3e429 + 263c46d commit b2450ff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion integration/internal/container/states.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ func IsInState(ctx context.Context, apiClient client.APIClient, containerID stri
return poll.Success()
}
}
return poll.Continue("waiting for container to be one of (%s), currently %s", strings.Join(state, ", "), inspect.State.Status)
if len(state) == 1 {
return poll.Continue("waiting for container State.Status to be '%s', currently '%s'", state[0], inspect.State.Status)
} else {
return poll.Continue("waiting for container State.Status to be one of (%s), currently '%s'", strings.Join(state, ", "), inspect.State.Status)
}
}
}

Expand Down

0 comments on commit b2450ff

Please sign in to comment.