Skip to content

Commit 2cdb4e5

Browse files
authored
aws: Fixes test for throttled request retries (#383)
Updates expected test result that validates the default retryer logic for jittered delay, added in #375
1 parent e57892e commit 2cdb4e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws/request_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ func TestRequestThrottleRetries(t *testing.T) {
445445
t.Errorf("expect %d retry count, got %d", e, a)
446446
}
447447

448-
expectDelays := []struct{ min, max time.Duration }{{500, 999}, {1000, 1998}, {2000, 3996}}
448+
expectDelays := []struct{ min, max time.Duration }{{500, 1000}, {1000, 2000}, {2000, 4000}}
449449
for i, v := range delays {
450450
min := expectDelays[i].min * time.Millisecond
451451
max := expectDelays[i].max * time.Millisecond

0 commit comments

Comments
 (0)