Skip to content

Commit 353118c

Browse files
committed
e2e: don't panic asserting inside wait.Poll
1 parent 8a39b60 commit 353118c

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)