Merge pull request #97909 from adamzhoul/fix-chan-bug

fix unit test "TestSPDYExecutorStream" flaking problem
This commit is contained in:
Kubernetes Prow Robot 2021-01-11 20:52:45 -08:00 committed by GitHub
commit 9caf675ed1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -208,7 +208,8 @@ func createHTTPStreams(w http.ResponseWriter, req *http.Request, opts *StreamOpt
}
// wait for stream
replyChan := make(chan struct{}, 1)
replyChan := make(chan struct{}, 4)
defer close(replyChan)
receivedStreams := 0
expectedStreams := 1
if opts.Stdout != nil {