Fix client test

This commit is contained in:
Jeff Mitchell 2017-11-12 12:34:56 -05:00
parent 87feab4492
commit 57f60c4f9f

View file

@ -163,8 +163,8 @@ func TestClientEnvSettings(t *testing.T) {
if len(tlsConfig.RootCAs.Subjects()) == 0 { if len(tlsConfig.RootCAs.Subjects()) == 0 {
t.Fatalf("bad: expected a cert pool with at least one subject") t.Fatalf("bad: expected a cert pool with at least one subject")
} }
if len(tlsConfig.Certificates) != 1 { if tlsConfig.GetCertificate == nil {
t.Fatalf("bad: expected client tls config to have a client certificate") t.Fatalf("bad: expected client tls config to have a certificate getter")
} }
if tlsConfig.InsecureSkipVerify != true { if tlsConfig.InsecureSkipVerify != true {
t.Fatalf("bad: %v", tlsConfig.InsecureSkipVerify) t.Fatalf("bad: %v", tlsConfig.InsecureSkipVerify)