mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 15:37:24 +00:00
Fix exec/attach test flakes
Ensure that stream reply frames are enqueued prior to any goaway frames.
This commit is contained in:
@@ -1699,7 +1699,9 @@ func TestPortForwardStreamReceived(t *testing.T) {
|
||||
if len(test.streamType) > 0 {
|
||||
stream.headers.Set("streamType", test.streamType)
|
||||
}
|
||||
err := f(stream)
|
||||
replySent := make(chan struct{})
|
||||
err := f(stream, replySent)
|
||||
close(replySent)
|
||||
if len(test.expectedError) > 0 {
|
||||
if err == nil {
|
||||
t.Errorf("%s: expected err=%q, but it was nil", name, test.expectedError)
|
||||
|
||||
Reference in New Issue
Block a user