From 8ab3351f0af23b2deb030cf055f76711169372bb Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Thu, 13 Oct 2016 17:42:25 +0300 Subject: [PATCH] Unshadow err in client test --- client_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client_test.go b/client_test.go index dceda2f6d8..77589532e8 100644 --- a/client_test.go +++ b/client_test.go @@ -1075,9 +1075,9 @@ func startEchoServerExt(t *testing.T, network, addr string, isTLS bool) *testEch if isTLS { certFile := "./ssl-cert-snakeoil.pem" keyFile := "./ssl-cert-snakeoil.key" - cert, err := tls.LoadX509KeyPair(certFile, keyFile) - if err != nil { - t.Fatalf("Cannot load TLS certificate: %s", err) + cert, err1 := tls.LoadX509KeyPair(certFile, keyFile) + if err1 != nil { + t.Fatalf("Cannot load TLS certificate: %s", err1) } tlsConfig := &tls.Config{ Certificates: []tls.Certificate{cert},