(t *testing.T, containerID, status string)
| 31 | } |
| 32 | |
| 33 | func containerStatus(t *testing.T, containerID, status string) func(poll.LogT) poll.Result { |
| 34 | t.Helper() |
| 35 | return func(poll.LogT) poll.Result { |
| 36 | result := icmd.RunCommand("docker", "inspect", "-f", "{{ .State.Status }}", containerID) |
| 37 | result.Assert(t, icmd.Success) |
| 38 | actual := strings.TrimSpace(result.Stdout()) |
| 39 | if actual == status { |
| 40 | return poll.Success() |
| 41 | } |
| 42 | return poll.Continue("expected status %s != %s", status, actual) |
| 43 | } |
| 44 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…