Skip to content

Commit 1da8ca8

Browse files
committed
Extract restart number properly
Signed-off-by: Laura Lorenz <[email protected]>
1 parent 2732d57 commit 1da8ca8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e_node/container_restart_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func extractObservedBackoff(ctx context.Context, f *framework.Framework, podName
113113
for _, statuses := range [][]v1.ContainerStatus{pod.Status.ContainerStatuses, pod.Status.InitContainerStatuses, pod.Status.EphemeralContainerStatuses} {
114114
for _, cs := range statuses {
115115
if cs.Name == containerName {
116-
return r, nil
116+
return cs.RestartCount, nil
117117
}
118118
}
119119
}

0 commit comments

Comments
 (0)