Merge pull request #31632 from vishh/issue-30567
Automatic merge from submit-queue Fix pod get logs test Helps debug #30567.
This commit is contained in:
		@@ -530,17 +530,13 @@ var _ = framework.KubeDescribe("Pods", func() {
 | 
			
		||||
					{
 | 
			
		||||
						Name:    "main",
 | 
			
		||||
						Image:   "gcr.io/google_containers/busybox:1.24",
 | 
			
		||||
						Command: []string{"/bin/sh", "-c", "echo container is alive; sleep 600"},
 | 
			
		||||
						Command: []string{"/bin/sh", "-c", "echo container is alive; sleep 10000"},
 | 
			
		||||
					},
 | 
			
		||||
				},
 | 
			
		||||
			},
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		By("submitting the pod to kubernetes")
 | 
			
		||||
		defer func() {
 | 
			
		||||
			By("deleting the pod")
 | 
			
		||||
			podClient.Delete(pod.Name, api.NewDeleteOptions(0))
 | 
			
		||||
		}()
 | 
			
		||||
		podClient.CreateSync(pod)
 | 
			
		||||
 | 
			
		||||
		req := f.Client.Get().
 | 
			
		||||
@@ -566,7 +562,7 @@ var _ = framework.KubeDescribe("Pods", func() {
 | 
			
		||||
				}
 | 
			
		||||
				framework.Failf("Failed to read completely from websocket %s: %v", url.String(), err)
 | 
			
		||||
			}
 | 
			
		||||
			if len(msg) == 0 {
 | 
			
		||||
			if len(strings.TrimSpace(string(msg))) == 0 {
 | 
			
		||||
				continue
 | 
			
		||||
			}
 | 
			
		||||
			buf.Write(msg)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user