Skip to content

Commit bd0c5a4

Browse files
committed
Don't stop the next poll when it fails to grab logs
1 parent 2c4a863 commit bd0c5a4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/e2e/network/dns_common.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,10 @@ 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-
framework.ExpectNoError(err)
511+
if err != nil {
512+
framework.Logf("Unable to get logs for %s: %v", container.Name, err)
513+
continue
514+
}
512515
framework.Logf("Pod client logs for %s: %s", container.Name, logs)
513516
}
514517

0 commit comments

Comments
 (0)