mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Fix flakey port forward test
Only simulate data for the data stream, not for the error stream too. Fixes #6529
This commit is contained in:
		@@ -138,7 +138,10 @@ func (c *fakeUpgradeConnection) CreateStream(headers http.Header) (httpstream.St
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	stream := &fakeUpgradeStream{}
 | 
						stream := &fakeUpgradeStream{}
 | 
				
			||||||
	c.streams[headers.Get(api.PortHeader)] = stream
 | 
						c.streams[headers.Get(api.PortHeader)] = stream
 | 
				
			||||||
 | 
						// only simulate data on the data stream for now, not the error stream
 | 
				
			||||||
 | 
						if headers.Get(api.StreamType) == api.StreamTypeData {
 | 
				
			||||||
		stream.data = c.portData[headers.Get(api.PortHeader)]
 | 
							stream.data = c.portData[headers.Get(api.PortHeader)]
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return stream, nil
 | 
						return stream, nil
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user