Merge pull request #129155 from aojea/dns_panic

e2e: don't panic asserting inside wait.Poll
This commit is contained in:
Kubernetes Prow Robot 2024-12-12 06:41:17 +00:00 committed by GitHub
commit 1e55df4985
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -490,7 +490,7 @@ func assertFilesContain(ctx context.Context, fileNames []string, fileDir string,
if err != nil {
if ctx.Err() != nil {
framework.Failf("Unable to read %s from pod %s/%s: %v", fileName, pod.Namespace, pod.Name, err)
return false, fmt.Errorf("Unable to read %s from pod %s/%s: %v", fileName, pod.Namespace, pod.Name, err)
} else {
framework.Logf("Unable to read %s from pod %s/%s: %v", fileName, pod.Namespace, pod.Name, err)
}