Skip to content

Commit

Permalink
set p2c for newer jose
Browse files Browse the repository at this point in the history
  • Loading branch information
Daisuke Maki committed Jan 20, 2025
1 parent eab1f85 commit a7b9cbb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jwx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ func TestDecoderSetting(t *testing.T) {

// Test compatibility against `jose` tool
func TestJoseCompatibility(t *testing.T) {

Check failure on line 91 in jwx_test.go

View workflow job for this annotation

GitHub Actions / lint

TestJoseCompatibility should use t.Cleanup instead of defer (tparallel)
t.Parallel()

if testing.Short() {
t.Logf("Skipped during short tests")
return
Expand All @@ -101,6 +99,10 @@ func TestJoseCompatibility(t *testing.T) {
return
}

// latchset/jose uses a larger p2c count than we allow
jwe.Settings(jwe.WithMaxPBES2Count(32768))
defer jwe.Settings(jwe.WithMaxPBES2Count(10000))

t.Run("jwk", func(t *testing.T) {
t.Parallel()
testcases := []struct {
Expand Down

0 comments on commit a7b9cbb

Please sign in to comment.