From 42c8ebc286f76cba004023a1cd3f8d80261887da Mon Sep 17 00:00:00 2001 From: Daisuke Maki Date: Sat, 23 Nov 2024 08:14:59 +0900 Subject: [PATCH] Change random big value to math.MaxInt --- jwe/jwe_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jwe/jwe_test.go b/jwe/jwe_test.go index f6bc0a2b..4bea6d76 100644 --- a/jwe/jwe_test.go +++ b/jwe/jwe_test.go @@ -11,6 +11,7 @@ import ( "crypto/rsa" "encoding/base64" "fmt" + "math" "os" "strings" "testing" @@ -784,7 +785,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))