From 27d5ed0e7aef58e694647e2ee81b0bdea37bd2da Mon Sep 17 00:00:00 2001 From: wefine Date: Mon, 14 Nov 2016 17:01:17 +0800 Subject: [PATCH] fix t.Errorf to t.Error in serveral _test.go Signed-off-by: wefine Upstream-commit: 2eb3e2ce0ffb45fbb3698b8bb618ec90f73f6890 Component: cli --- components/cli/client_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/cli/client_test.go b/components/cli/client_test.go index ee199c2bec..3a6575c9cc 100644 --- a/components/cli/client_test.go +++ b/components/cli/client_test.go @@ -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") } }