e2e: fix userns test

after creating two pods, we need to ensure we wait on each to be ready before we collect their logs

Signed-off-by: Peter Hunt <pehunt@redhat.com>
This commit is contained in:
Peter Hunt
2025-05-30 13:32:50 -04:00
parent cd3b5c5766
commit ee33c1a9fc

View File

@@ -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
}