Skip to content

Commit 820ea00

Browse files
chaopengcopybara-github
authored andcommitted
Fix Github build
PiperOrigin-RevId: 356996930 Change-Id: I38ecb1d930aa8c95a05f1fcc7a1b50d8e098a294
1 parent b1d3123 commit 820ea00

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

lib/persona/persona_test.go

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@
1515
package persona
1616

1717
import (
18-
"crypto/x509"
18+
"math/big"
1919
"net/http"
2020
"net/http/httptest"
2121
"testing"
2222

2323
"github.com/google/go-cmp/cmp" /* copybara-comment */
24+
"github.com/google/go-cmp/cmp/cmpopts" /* copybara-comment */
2425
"gopkg.in/square/go-jose.v2" /* copybara-comment */
2526
"google.golang.org/protobuf/testing/protocmp" /* copybara-comment */
2627
"github.com/GoogleCloudPlatform/healthcare-federated-access-services/lib/globalflags" /* copybara-comment: globalflags */
@@ -96,12 +97,10 @@ func TestJWKS(t *testing.T) {
9697
want := &jose.JSONWebKeySet{
9798
Keys: []jose.JSONWebKey{
9899
{
99-
Key: testkeys.PersonaBrokerKey.Public,
100-
Algorithm: "RS384",
101-
Use: "sig",
102-
KeyID: string(testkeys.PersonaBroker),
103-
Certificates: []*x509.Certificate{},
104-
CertificateThumbprintSHA256: []byte{},
100+
Key: testkeys.PersonaBrokerKey.Public,
101+
Algorithm: "RS384",
102+
Use: "sig",
103+
KeyID: string(testkeys.PersonaBroker),
105104
},
106105
},
107106
}
@@ -110,7 +109,7 @@ func TestJWKS(t *testing.T) {
110109
t.Fatalf("httputils.DecodeJSON() failed: %v", err)
111110
}
112111

113-
if d := cmp.Diff(want, got); len(d) > 0 {
112+
if d := cmp.Diff(want, got, cmpopts.EquateEmpty(), cmp.AllowUnexported(big.Int{})); len(d) > 0 {
114113
t.Errorf("response (-want, +got): %s", d)
115114
}
116115
}

0 commit comments

Comments
 (0)