-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add test to verify backoff Context cancellation behaviour * Verify that call will return error when Context-cancelled during backoff * Verify that error is due to Context-cancellation * Fix Context-cancellation during backoff * Context cancellation would result in no result being sent, thus causing the operation to hang in many circumstances * Add tests to verify retry behaviour with POST requests * Add test for POST-requests provided by Do() with a body * Add test for POST-requests provided by Post() with a body * Add middlewareServer to support POST tests * Fix retries for requests with bodies * Provide each concurrent request with its own Request so they do not interfere with each other. Eg reading/closing each others bodies. * Reset body before retrying when requests have bodies * Fix first request with Do and a body failing due to copyBody closing it
- Loading branch information
Showing
2 changed files
with
292 additions
and
20 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