mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-01-06 21:47:45 +00:00
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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user