Adding logging for Travis

This commit is contained in:
Michael Schurter 2017-05-03 15:18:48 -07:00
parent 4dc897a664
commit 24c8434368

View file

@ -440,9 +440,10 @@ func TestHTTP_VerifyHTTPSClient(t *testing.T) {
// PASS: Requests that specify a valid hostname, CA cert, and client
// certificate succeed.
tlsConf.GetClientCertificate = func(*tls.CertificateRequestInfo) (*tls.Certificate, error) {
s.Agent.logger.Printf("Loading certificate")
c, err := tls.LoadX509KeyPair(foocert, fookey)
if err != nil {
t.Logf("error loading client certificate: %v", err)
s.Agent.logger.Printf("error loading client certificate: %v", err)
return nil, err
}
return &c, nil