Skip to content

Commit

Permalink
fix cmp issue
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Carl <[email protected]>
  • Loading branch information
grounded042 committed Jul 9, 2021
1 parent 58a0c0f commit e3dff3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion validate/josev2/josev2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (

"github.com/auth0/go-jwt-middleware/internal/oidc"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"gopkg.in/square/go-jose.v2"
"gopkg.in/square/go-jose.v2/jwt"
)
Expand Down Expand Up @@ -223,7 +224,7 @@ func Test_JWKSProvider(t *testing.T) {
t.Fatalf("did not want an error, but got %s", err)
}

if want, got := &jwks, actualJWKS; !cmp.Equal(want, got) {
if want, got := &jwks, actualJWKS; !cmp.Equal(want, got, cmpopts.IgnoreUnexported()) {
t.Fatalf("jwks did not match: %s", cmp.Diff(want, got))
}

Expand Down

0 comments on commit e3dff3e

Please sign in to comment.