mirror of https://github.com/docker/cli.git
fix t.Errorf to t.Error in serveral _test.go
Signed-off-by: wefine <wang.xiaoren@zte.com.cn>
This commit is contained in:
parent
85e72de60c
commit
2eb3e2ce0f
|
@ -102,11 +102,11 @@ func TestNewEnvClient(t *testing.T) {
|
|||
// pedantic checking that this is handled correctly
|
||||
tr := apiclient.client.Transport.(*http.Transport)
|
||||
if tr.TLSClientConfig == nil {
|
||||
t.Errorf("no tls config found when DOCKER_TLS_VERIFY enabled")
|
||||
t.Error("no tls config found when DOCKER_TLS_VERIFY enabled")
|
||||
}
|
||||
|
||||
if tr.TLSClientConfig.InsecureSkipVerify {
|
||||
t.Errorf("tls verification should be enabled")
|
||||
t.Error("tls verification should be enabled")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue