Tags: sethgrid/pester
Tags
A931
Fix POST retries (#45) * 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