Skip to content

Commit 6cb5ea5

Browse files
authored
Merge pull request kubernetes#128484 from carlory/improve-error
improve error message format for WaitForPodSuccessInNamespaceTimeout
2 parents dfd456c + 529ad90 commit 6cb5ea5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/framework/pod/wait.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ func WaitForPodSuccessInNamespaceTimeout(ctx context.Context, c clientset.Interf
475475
ginkgo.By("Saw pod success")
476476
return true, nil
477477
case v1.PodFailed:
478-
return true, gomega.StopTrying(fmt.Sprintf("pod %q failed with status: %+v", podName, pod.Status))
478+
return true, gomega.StopTrying(fmt.Sprintf("pod %q failed with status: \n%s", podName, format.Object(pod.Status, 1)))
479479
default:
480480
return false, nil
481481
}

0 commit comments

Comments
 (0)