Skip to content

Commit

Permalink
Missed refactor of container name here
Browse files Browse the repository at this point in the history
Signed-off-by: Laura Lorenz <[email protected]>
  • Loading branch information
lauralorenz committed Nov 12, 2024
1 parent e6059d7 commit 2732d57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e_node/container_restart_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ func doTest(ctx context.Context, f *framework.Framework, targetRestarts int, con
podErr := e2epod.WaitForPodContainerToFail(ctx, f.ClientSet, f.Namespace.Name, pod.Name, 0, "CrashLoopBackOff", 1*time.Minute)
gomega.Expect(podErr).To(gomega.HaveOccurred())

// Wait for 150s worth of backoffs to occur so we can confirm the backoff growth.
podErr = e2epod.WaitForContainerRestartedNTimes(ctx, f.ClientSet, f.Namespace.Name, pod.Name, "restart", 150*time.Second, targetRestarts)
// Wait for 210s worth of backoffs to occur so we can confirm the backoff growth.
podErr = e2epod.WaitForContainerRestartedNTimes(ctx, f.ClientSet, f.Namespace.Name, pod.Name, containerName, 210*time.Second, targetRestarts)
gomega.Expect(podErr).ShouldNot(gomega.HaveOccurred(), "Expected container to repeatedly back off container failures")

r, err := extractObservedBackoff(ctx, f, pod.Name, containerName)
Expand Down

0 comments on commit 2732d57

Please sign in to comment.