Skip to content

Commit

Permalink
Unshadow err in client test
Browse files Browse the repository at this point in the history
  • Loading branch information
valyala committed Oct 13, 2016
1 parent 93c15ed commit 8ab3351
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit 8ab3351

Please sign in to comment.