Skip to content

Commit

Permalink
fix int overflow on 32 bit architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianyi Wang committed Feb 17, 2023
1 parent 996b879 commit b19c337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/retry/jitter_backoff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func TestExponentialJitterBackoff_AttemptDelay(t *testing.T) {
"max delay": {
MaxBackoff: 20 * time.Second,
RandFloat: func() (float64, error) { return maxB, nil },
Attempt: math.MaxInt,
Attempt: 2147483647,
Expect: timeconv.FloatSecondsDur(maxB * math.Exp2(math.Log2(20))),
},
}
Expand Down

0 comments on commit b19c337

Please sign in to comment.