Closed dluksza closed 1 year ago
Are you matching on query params?
I'm using the default configuration. How can I check and set query params match?
Adding match_requests_on: [:query]
to the test case did solve the problem. Thanks @kacorvus
Thank you @kacorvus for the help 🙇
ExVCR will return wrong response when HTTPoison requests are executed from async tasks. It all works fine when cassette is recorded, and the recording is correct, but on replay one response is returned for each call. Here's an example code
test code
This will pass on the first execution (when cassette is recorded) but fail on subsequent sections.
When
Task.async
andTask.wait_many
is removed test will always pass.