Skip to content

Commit

Permalink
Change random big value to math.MaxInt (#1242)
Browse files Browse the repository at this point in the history
Co-authored-by: Daisuke Maki <lestrrat+github@github.com>
  • Loading branch information
lestrrat and Daisuke Maki authored Nov 24, 2024
1 parent bc6070a commit a8a54fa
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 a8a54fa

Please sign in to comment.