From 57f60c4f9f9c2660e8d1db173b8c74b3f2f16c8b Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Sun, 12 Nov 2017 12:34:56 -0500 Subject: [PATCH] Fix client test --- api/client_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/client_test.go b/api/client_test.go index a11763411..bfeb81463 100644 --- a/api/client_test.go +++ b/api/client_test.go @@ -163,8 +163,8 @@ func TestClientEnvSettings(t *testing.T) { if len(tlsConfig.RootCAs.Subjects()) == 0 { t.Fatalf("bad: expected a cert pool with at least one subject") } - if len(tlsConfig.Certificates) != 1 { - t.Fatalf("bad: expected client tls config to have a client certificate") + if tlsConfig.GetCertificate == nil { + t.Fatalf("bad: expected client tls config to have a certificate getter") } if tlsConfig.InsecureSkipVerify != true { t.Fatalf("bad: %v", tlsConfig.InsecureSkipVerify)