Skip to content

Commit

Permalink
fix(DEVX-363): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lojzatran committed Dec 16, 2024
1 parent 85f5e0e commit c9f0332
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/sdk-client-v3/src/utils/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ export default async function executor(request: HttpClientConfig) {
return { _response, shouldRetry: true }
}
} catch (e) {
if (e.name.includes('AbortError') && retryWhenAborted) {
if (
(e.name.includes('AbortError') ||
e.name.includes('TimeoutError')) &&
retryWhenAborted
) {
return { _response: e, shouldRetry: true }
} else {
throw e
Expand Down

0 comments on commit c9f0332

Please sign in to comment.