mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-05 09:01:06 +00:00
StreamTranslator and FallbackExecutor for WebSockets
Kubernetes-commit: 168998e87bfd49a1b0bc6402761fafd5ace3bb3b
This commit is contained in:
committed by
Kubernetes Publisher
parent
c92537416a
commit
b7d73dd18c
@@ -183,6 +183,7 @@ func TestSPDYExecutorStream(t *testing.T) {
|
||||
}
|
||||
|
||||
func newTestHTTPServer(f AttachFunc, options *StreamOptions) *httptest.Server {
|
||||
//nolint:errcheck
|
||||
server := httptest.NewServer(http.HandlerFunc(func(writer http.ResponseWriter, request *http.Request) {
|
||||
ctx, err := createHTTPStreams(writer, request, options)
|
||||
if err != nil {
|
||||
@@ -381,7 +382,7 @@ func TestStreamRandomData(t *testing.T) {
|
||||
}
|
||||
defer ctx.conn.Close()
|
||||
|
||||
io.Copy(ctx.stdoutStream, ctx.stdinStream)
|
||||
io.Copy(ctx.stdoutStream, ctx.stdinStream) //nolint:errcheck
|
||||
}))
|
||||
|
||||
defer server.Close()
|
||||
|
Reference in New Issue
Block a user