checkContainerState checks container's state.
(t *testing.T, svc *remote.RuntimeService, name string, expected criruntime.ContainerState)
| 806 | |
| 807 | // checkContainerState checks container's state. |
| 808 | func checkContainerState(t *testing.T, svc *remote.RuntimeService, name string, expected criruntime.ContainerState) { |
| 809 | t.Logf("Checking container %s state", name) |
| 810 | status, err := svc.ContainerStatus(name) |
| 811 | require.NoError(t, err) |
| 812 | assert.Equal(t, expected, status.State) |
| 813 | } |
| 814 | |
| 815 | // pullImagesByCRI pulls images by CRI. |
| 816 | func pullImagesByCRI(t *testing.T, svc *remote.ImageService, images ...string) []string { |
no test coverage detected
searching dependent graphs…