Skip to content

Commit

Permalink
Fix TestDynamicIdentityFileCreds for Go 1.23 (#49597) (#49668)
Browse files Browse the repository at this point in the history
  • Loading branch information
codingllama authored Dec 3, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 3b4fa2b commit 1f3cc7e
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
@@ -490,6 +490,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()
@@ -548,6 +549,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()

0 comments on commit 1f3cc7e

Please sign in to comment.