From 2732d57e33fd8c45a6f4856fce52f7c8ed8073c9 Mon Sep 17 00:00:00 2001 From: Laura Lorenz Date: Tue, 12 Nov 2024 18:04:08 +0000 Subject: [PATCH] Missed refactor of container name here Signed-off-by: Laura Lorenz --- test/e2e_node/container_restart_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e_node/container_restart_test.go b/test/e2e_node/container_restart_test.go index 17445ae7ada..97c908ef250 100644 --- a/test/e2e_node/container_restart_test.go +++ b/test/e2e_node/container_restart_test.go @@ -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)