From a6822984d43395387a5125509bf14abf0418d65c Mon Sep 17 00:00:00 2001 From: Yannis Fragoulis Date: Thu, 5 Oct 2023 15:07:02 +0300 Subject: [PATCH] chore: Fix test --- clerk/tokens_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clerk/tokens_test.go b/clerk/tokens_test.go index 11a258ee..d1005ddf 100644 --- a/clerk/tokens_test.go +++ b/clerk/tokens_test.go @@ -204,7 +204,7 @@ func TestClient_VerifyToken_Success_NewIssuerFormat(t *testing.T) { claims := dummySessionClaims claims.Issuer = "https://foo-bar-13.clerk.accounts.dev" - token, pubKey := testGenerateTokenJWT(t, dummySessionClaims, "kid") + token, pubKey := testGenerateTokenJWT(t, claims, "kid") client := c.(*client) client.jwksCache.set(testBuildJWKS(t, pubKey, jose.RS256, "kid")) @@ -214,8 +214,8 @@ func TestClient_VerifyToken_Success_NewIssuerFormat(t *testing.T) { t.Fatalf("Expected no error but got %v", err) } - if !reflect.DeepEqual(got, &dummySessionClaims) { - t.Errorf("Expected %+v, but got %+v", dummySessionClaims, got) + if !reflect.DeepEqual(got, &claims) { + t.Errorf("Expected %+v, but got %+v", claims, got) } }