MCPcopy Index your code
hub / github.com/containerd/containerd / checkContainerState

Function checkContainerState

integration/release_upgrade_linux_test.go:808–813  ·  view source on GitHub ↗

checkContainerState checks container's state.

(t *testing.T, svc *remote.RuntimeService, name string, expected criruntime.ContainerState)

Source from the content-addressed store, hash-verified

806
807// checkContainerState checks container's state.
808func 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.
816func pullImagesByCRI(t *testing.T, svc *remote.ImageService, images ...string) []string {

Calls 1

ContainerStatusMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…