Skip to content

Commit 1e55df4

Browse files
authored
Merge pull request kubernetes#129155 from aojea/dns_panic
e2e: don't panic asserting inside wait.Poll
2 parents 2b26441 + 353118c commit 1e55df4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/network/dns_common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ func assertFilesContain(ctx context.Context, fileNames []string, fileDir string,
490490

491491
if err != nil {
492492
if ctx.Err() != nil {
493-
framework.Failf("Unable to read %s from pod %s/%s: %v", fileName, pod.Namespace, pod.Name, err)
493+
return false, fmt.Errorf("Unable to read %s from pod %s/%s: %v", fileName, pod.Namespace, pod.Name, err)
494494
} else {
495495
framework.Logf("Unable to read %s from pod %s/%s: %v", fileName, pod.Namespace, pod.Name, err)
496496
}

0 commit comments

Comments
 (0)