diff --git a/test/e2e/common/node/security_context.go b/test/e2e/common/node/security_context.go index 0bad8e86bf3..4759ecb12f9 100644 --- a/test/e2e/common/node/security_context.go +++ b/test/e2e/common/node/security_context.go @@ -102,7 +102,7 @@ var _ = SIGDescribe("Security Context", func() { podClient.DeleteSync(ctx, createdPod2.Name, metav1.DeleteOptions{}, f.Timeouts.PodDelete) }) getLogs := func(pod *v1.Pod) (string, error) { - err := e2epod.WaitForPodSuccessInNamespaceTimeout(ctx, f.ClientSet, createdPod1.Name, f.Namespace.Name, f.Timeouts.PodStart) + err := e2epod.WaitForPodSuccessInNamespaceTimeout(ctx, f.ClientSet, pod.Name, f.Namespace.Name, f.Timeouts.PodStart) if err != nil { return "", err }