mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-05 17:10:27 +00:00
Remove ioutil from client-go
Signed-off-by: inosato <si17_21@yahoo.co.jp> Kubernetes-commit: 88dfa51b6003c90e8f0a0508939a1d79950a40df
This commit is contained in:
committed by
Kubernetes Publisher
parent
2e404084ad
commit
27de641f75
@@ -27,7 +27,7 @@ import (
|
||||
"encoding/json"
|
||||
"encoding/pem"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"math/big"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
@@ -888,7 +888,7 @@ func TestRoundTripper(t *testing.T) {
|
||||
}
|
||||
a.environ = environ
|
||||
a.now = now
|
||||
a.stderr = ioutil.Discard
|
||||
a.stderr = io.Discard
|
||||
|
||||
tc := &transport.Config{}
|
||||
if err := a.UpdateTransportConfig(tc); err != nil {
|
||||
@@ -1051,7 +1051,7 @@ func TestTLSCredentials(t *testing.T) {
|
||||
return []string{"TEST_OUTPUT=" + string(data)}
|
||||
}
|
||||
a.now = func() time.Time { return now }
|
||||
a.stderr = ioutil.Discard
|
||||
a.stderr = io.Discard
|
||||
|
||||
// We're not interested in server's cert, this test is about client cert.
|
||||
tc := &transport.Config{TLS: transport.TLSConfig{Insecure: true}}
|
||||
@@ -1134,7 +1134,7 @@ func TestConcurrentUpdateTransportConfig(t *testing.T) {
|
||||
}
|
||||
a.environ = environ
|
||||
a.now = now
|
||||
a.stderr = ioutil.Discard
|
||||
a.stderr = io.Discard
|
||||
|
||||
stopCh := make(chan struct{})
|
||||
defer close(stopCh)
|
||||
|
Reference in New Issue
Block a user