Skip to content

Commit b19c337

Browse files
author
Tianyi Wang
committed
fix int overflow on 32 bit architecture
1 parent 996b879 commit b19c337

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws/retry/jitter_backoff_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func TestExponentialJitterBackoff_AttemptDelay(t *testing.T) {
3838
"max delay": {
3939
MaxBackoff: 20 * time.Second,
4040
RandFloat: func() (float64, error) { return maxB, nil },
41-
Attempt: math.MaxInt,
41+
Attempt: 2147483647,
4242
Expect: timeconv.FloatSecondsDur(maxB * math.Exp2(math.Log2(20))),
4343
},
4444
}

0 commit comments

Comments
 (0)