mirror of
https://github.com/kubernetes/client-go.git
synced 2025-07-15 16:03:09 +00:00
Fix Go vet errors for master golang
Co-authored-by: Rajalakshmi-Girish <rajalakshmi.girish1@ibm.com> Co-authored-by: Abhishek Kr Srivastav <Abhishek.kr.srivastav@ibm.com> Kubernetes-commit: d58b536147a6acfc6bfc6f66de2fe3af973ee88d
This commit is contained in:
parent
8a9438e118
commit
804c220d8f
@ -299,7 +299,7 @@ func TestHTTPProxy(t *testing.T) {
|
|||||||
}))
|
}))
|
||||||
defer testProxyServer.Close()
|
defer testProxyServer.Close()
|
||||||
|
|
||||||
t.Logf(testProxyServer.URL)
|
t.Log(testProxyServer.URL)
|
||||||
|
|
||||||
u, err := url.Parse(testProxyServer.URL)
|
u, err := url.Parse(testProxyServer.URL)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -115,5 +115,5 @@ func (d *errorDecoderV4) decode(message []byte) error {
|
|||||||
return errors.New("error stream protocol error: unknown error")
|
return errors.New("error stream protocol error: unknown error")
|
||||||
}
|
}
|
||||||
|
|
||||||
return fmt.Errorf(status.Message)
|
return errors.New(status.Message)
|
||||||
}
|
}
|
||||||
|
@ -159,7 +159,7 @@ func TestTLSConfigKey(t *testing.T) {
|
|||||||
|
|
||||||
shouldCacheA := valueA.Proxy == nil
|
shouldCacheA := valueA.Proxy == nil
|
||||||
if shouldCacheA != canCacheA {
|
if shouldCacheA != canCacheA {
|
||||||
t.Errorf("Unexpected canCache=false for " + nameA)
|
t.Error("Unexpected canCache=false for " + nameA)
|
||||||
}
|
}
|
||||||
|
|
||||||
configIsNotEmpty := !reflect.DeepEqual(*valueA, Config{})
|
configIsNotEmpty := !reflect.DeepEqual(*valueA, Config{})
|
||||||
|
Loading…
Reference in New Issue
Block a user