Skip to content

Commit

Permalink
chore: Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
fragoulis committed Oct 5, 2023
1 parent 122a177 commit a682298
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clerk/tokens_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand All @@ -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)
}
}

Expand Down

0 comments on commit a682298

Please sign in to comment.