Merge pull request #127038 from oscgu/chore/rm-ioutil-3

chore(client): rm ioutil
This commit is contained in:
Kubernetes Prow Robot 2024-10-23 08:30:52 +01:00 committed by GitHub
commit 743f5a1a02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,7 +22,6 @@ import (
"errors"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/http/httptest"
"net/url"
@ -336,7 +335,7 @@ func TestDial(t *testing.T) {
conn: &fakeConnection{},
resp: &http.Response{
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"})