Skip to content

Commit

Permalink
tweak test
Browse files Browse the repository at this point in the history
  • Loading branch information
Daisuke Maki committed Feb 24, 2025
1 parent 09cc380 commit b813256
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jws/jws_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1623,6 +1623,7 @@ func TestGH840(t *testing.T) {
signed, err := jwt.Sign(tok, jwt.WithKey(jwa.ES256, privkey))
if err != nil {
require.Error(t, err, `jwt.Sign should fail`)
return
}
require.NoError(t, err, `jwt.Sign should succeed`)
_, err = jwt.Parse(signed, jwt.WithKey(jwa.ES256, pubkey))
Expand Down

0 comments on commit b813256

Please sign in to comment.