Skip to content

Commit

Permalink
Fix Github build
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 356996930
Change-Id: I38ecb1d930aa8c95a05f1fcc7a1b50d8e098a294
  • Loading branch information
chaopeng authored and copybara-github committed Feb 11, 2021
1 parent b1d3123 commit 820ea00
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions lib/persona/persona_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@
package persona

import (
"crypto/x509"
"math/big"
"net/http"
"net/http/httptest"
"testing"

"github.com/google/go-cmp/cmp" /* copybara-comment */
"github.com/google/go-cmp/cmp/cmpopts" /* copybara-comment */
"gopkg.in/square/go-jose.v2" /* copybara-comment */
"google.golang.org/protobuf/testing/protocmp" /* copybara-comment */
"github.com/GoogleCloudPlatform/healthcare-federated-access-services/lib/globalflags" /* copybara-comment: globalflags */
Expand Down Expand Up @@ -96,12 +97,10 @@ func TestJWKS(t *testing.T) {
want := &jose.JSONWebKeySet{
Keys: []jose.JSONWebKey{
{
Key: testkeys.PersonaBrokerKey.Public,
Algorithm: "RS384",
Use: "sig",
KeyID: string(testkeys.PersonaBroker),
Certificates: []*x509.Certificate{},
CertificateThumbprintSHA256: []byte{},
Key: testkeys.PersonaBrokerKey.Public,
Algorithm: "RS384",
Use: "sig",
KeyID: string(testkeys.PersonaBroker),
},
},
}
Expand All @@ -110,7 +109,7 @@ func TestJWKS(t *testing.T) {
t.Fatalf("httputils.DecodeJSON() failed: %v", err)
}

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

0 comments on commit 820ea00

Please sign in to comment.