Skip to content

Commit

Permalink
Change random big value to math.MaxInt
Browse files Browse the repository at this point in the history
  • Loading branch information
Daisuke Maki committed Nov 22, 2024
1 parent bc6070a commit c21fa73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jwe/jwe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"crypto/rsa"
"encoding/base64"
"fmt"
"math"
"os"
"strings"
"testing"
Expand Down Expand Up @@ -937,7 +938,7 @@ func TestGHSA_7f9x_gw85_8grf(t *testing.T) {

// NOTE: HAS GLOBAL EFFECT
// Should allow for timeout to occur
jwe.Settings(jwe.WithMaxPBES2Count(100000000000000000))
jwe.Settings(jwe.WithMaxPBES2Count(math.MaxInt32))

// put it back to normal after the test
defer jwe.Settings(jwe.WithMaxPBES2Count(10000))
Expand Down

0 comments on commit c21fa73

Please sign in to comment.