You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
t.Logf("we expect the container statuses to have changed to terminated")
684
684
newStatus:=expectPodStatus(t, syncer, testPod)
685
685
fori:=rangenewStatus.ContainerStatuses {
686
-
assert.False(t, newStatus.ContainerStatuses[i].State.Terminated==nil, "expected containers to be terminated")
686
+
assert.NotNil(t, newStatus.ContainerStatuses[i].State.Terminated, "expected containers to be terminated")
687
687
}
688
688
fori:=rangenewStatus.InitContainerStatuses {
689
-
assert.False(t, newStatus.InitContainerStatuses[i].State.Terminated==nil, "expected init containers to be terminated")
689
+
assert.NotNil(t, newStatus.InitContainerStatuses[i].State.Terminated, "expected init containers to be terminated")
690
690
}
691
691
692
692
expectUnknownState:= v1.ContainerState{Terminated: &v1.ContainerStateTerminated{Reason: kubecontainer.ContainerReasonStatusUnknown, Message: "The container could not be located when the pod was terminated", ExitCode: 137}}
assert.False(t, container.State.Waiting==nil, "expected init containers to be waiting")
774
+
assert.NotNil(t, container.State.Waiting, "expected init containers to be waiting")
775
775
}
776
776
777
777
expectUnknownState:= v1.ContainerState{Terminated: &v1.ContainerStateTerminated{Reason: kubecontainer.ContainerReasonStatusUnknown, Message: "The container could not be located when the pod was terminated", ExitCode: 137}}
0 commit comments