mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Merge pull request #127038 from oscgu/chore/rm-ioutil-3
chore(client): rm ioutil
This commit is contained in:
commit
743f5a1a02
@ -22,7 +22,6 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"net/url"
|
"net/url"
|
||||||
@ -336,7 +335,7 @@ func TestDial(t *testing.T) {
|
|||||||
conn: &fakeConnection{},
|
conn: &fakeConnection{},
|
||||||
resp: &http.Response{
|
resp: &http.Response{
|
||||||
StatusCode: http.StatusSwitchingProtocols,
|
StatusCode: http.StatusSwitchingProtocols,
|
||||||
Body: ioutil.NopCloser(&bytes.Buffer{}),
|
Body: io.NopCloser(&bytes.Buffer{}),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
dialer := spdy.NewDialer(upgrader, &http.Client{Transport: upgrader}, "POST", &url.URL{Host: "something.com", Scheme: "https"})
|
dialer := spdy.NewDialer(upgrader, &http.Client{Transport: upgrader}, "POST", &url.URL{Host: "something.com", Scheme: "https"})
|
||||||
|
Loading…
Reference in New Issue
Block a user