Skip to content

Commit e3dff3e

Browse files
committed
fix cmp issue
Signed-off-by: Jon Carl <jon.carl@auth0.com>
1 parent 58a0c0f commit e3dff3e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

validate/josev2/josev2_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import (
1717

1818
"github.com/auth0/go-jwt-middleware/internal/oidc"
1919
"github.com/google/go-cmp/cmp"
20+
"github.com/google/go-cmp/cmp/cmpopts"
2021
"gopkg.in/square/go-jose.v2"
2122
"gopkg.in/square/go-jose.v2/jwt"
2223
)
@@ -223,7 +224,7 @@ func Test_JWKSProvider(t *testing.T) {
223224
t.Fatalf("did not want an error, but got %s", err)
224225
}
225226

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

0 commit comments

Comments
 (0)