| 1734 | class TestRetryStrategy : public S3RetryStrategy { |
| 1735 | public: |
| 1736 | bool ShouldRetry(const S3RetryStrategy::AWSErrorDetail& error, |
| 1737 | int64_t attempted_retries) final { |
| 1738 | errors_encountered_.emplace_back(error); |
| 1739 | constexpr int64_t MAX_RETRIES = 2; |
| 1740 | return attempted_retries < MAX_RETRIES; |
| 1741 | } |
| 1742 | |
| 1743 | int64_t CalculateDelayBeforeNextRetry(const S3RetryStrategy::AWSErrorDetail& error, |
| 1744 | int64_t attempted_retries) final { |
nothing calls this directly
no test coverage detected