From 22bf24b775e5ee460fcf8715ca9a52901f68d946 Mon Sep 17 00:00:00 2001 From: Ryan Richard Date: Thu, 10 Sep 2020 18:50:34 -0700 Subject: [PATCH] Fix a unit test failure that only happens on golang 1.15 - Use the SAN field when creating a test cert or else the corresponding unit tests will fail when run with golang 1.15 --- cmd/local-user-authenticator/main_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/local-user-authenticator/main_test.go b/cmd/local-user-authenticator/main_test.go index 0bc49255..837b3c2a 100644 --- a/cmd/local-user-authenticator/main_test.go +++ b/cmd/local-user-authenticator/main_test.go @@ -395,7 +395,7 @@ func newCertProvider(t *testing.T) (provider.DynamicTLSServingCertProvider, []by serverName := "local-user-authenticator" cert, err := ca.Issue( pkix.Name{CommonName: serverName}, - []string{}, + []string{serverName}, time.Hour*24, ) require.NoError(t, err)