ecsclient: fix retry_handler_test.go
The test depended on an implementation detail of the sdk retry logic
internals. We were able to change the method here in order to better
detect the retry logic.
@@ -38,7 +38,7 @@ func TestOneDayRetrier(t *testing.T) {
request.Error = errors.New("")
request.Retryable = aws.Bool(true)
request.HTTPResponse = &http.Response{StatusCode: 500}
- if request.WillRetry() && retrier.ShouldRetry(request) {
+ if request.WillRetry() && request.IsErrorRetryable() {
totalDelay += retrier.RetryRules(request)
request.RetryCount++
}
