fix t.Errorf to t.Error in serveral _test.go
Signed-off-by: wefine <wang.xiaoren@zte.com.cn>
This commit is contained in:
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user