Skip to content

Commit d2c78b6

Browse files
Verify running mirror pod has running containers
1 parent 4db3a09 commit d2c78b6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/e2e_node/mirror_pod_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,11 @@ func checkMirrorPodRunning(cl clientset.Interface, name, namespace string) error
192192
if pod.Status.Phase != v1.PodRunning {
193193
return fmt.Errorf("expected the mirror pod %q to be running, got %q", name, pod.Status.Phase)
194194
}
195+
for i := range pod.Status.ContainerStatuses {
196+
if pod.Status.ContainerStatuses[i].State.Running == nil {
197+
return fmt.Errorf("expected the mirror pod %q with container %q to be running", name, pod.Status.ContainerStatuses[i].Name)
198+
}
199+
}
195200
return validateMirrorPod(cl, pod)
196201
}
197202

0 commit comments

Comments
 (0)