Skip to content

Commit e973b05

Browse files
authored
Revert "Don't stop the next poll when it fails to grab logs"
1 parent fa77f7f commit e973b05

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/e2e/network/dns_common.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -508,10 +508,7 @@ func assertFilesContain(ctx context.Context, fileNames []string, fileDir string,
508508
// grab logs from all the containers
509509
for _, container := range pod.Spec.Containers {
510510
logs, err := e2epod.GetPodLogs(ctx, client, pod.Namespace, pod.Name, container.Name)
511-
if err != nil {
512-
framework.Logf("Unable to get logs for %s: %v", container.Name, err)
513-
continue
514-
}
511+
framework.ExpectNoError(err)
515512
framework.Logf("Pod client logs for %s: %s", container.Name, logs)
516513
}
517514

0 commit comments

Comments
 (0)