Skip to content

Commit

Permalink
Fix TestDynamicIdentityFileCreds for Go 1.23 (#49597) (#49667)
Browse files Browse the repository at this point in the history
  • Loading branch information
codingllama authored Dec 3, 2024
1 parent 23b0ba1 commit f0baa5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/client/credentials_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ func TestDynamicIdentityFileCreds(t *testing.T) {
require.NoError(t, err)
wantTLSCert, err := tls.X509KeyPair(tlsCert, keyPEM)
require.NoError(t, err)
wantTLSCert.Leaf = nil
require.Equal(t, wantTLSCert, *gotTLSCert)

expiry, ok := cred.Expiry()
Expand Down Expand Up @@ -529,6 +530,7 @@ func TestDynamicIdentityFileCreds(t *testing.T) {
require.NoError(t, err)
wantTLSCert, err = tls.X509KeyPair(secondTLSCertPem, keyPEM)
require.NoError(t, err)
wantTLSCert.Leaf = nil
require.Equal(t, wantTLSCert, *gotTLSCert)

expiry, ok = cred.Expiry()
Expand Down

0 comments on commit f0baa5b

Please sign in to comment.