Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: http-agent retries calls (#632)
* feat: adds retry logic * test for zero retries * skip both unrelated broken tests
- Loading branch information
Showing
11 changed files
with
222 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-92.2 KB
...ty tests with SubtleCrypto -- can persist an identity in indexeddb (failed).png
Binary file not shown.
Binary file removed
BIN
-51.9 KB
...DSAKeyIdentity tests with SubtleCrypto -- generates a new identity (failed).png
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
packages/agent/src/agent/http/__snapshots__/http.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`retry failures should succeed after multiple failures within the configured limit 1`] = ` | ||
Object { | ||
"requestId": ArrayBuffer [], | ||
"response": Object { | ||
"ok": true, | ||
"status": 200, | ||
"statusText": "success!", | ||
}, | ||
} | ||
`; | ||
|
||
exports[`retry failures should throw errors immediately if retryTimes is set to 0 1`] = ` | ||
"Server returned an error: | ||
Code: 500 (Internal Server Error) | ||
Body: Error | ||
" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.