You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just tried out the new global_mock option on a project using HTTPoison. Everything looked great at first with tests seeing a massive speedup.
However, it turns out with global_mock enabled the tests aren't actually using the cassettes. They're always making external HTTP requests instead.
I tried deleting the existing cassettes to see what would happen. Interestingly the cassettes are re-created, but each is just an empty list. The tests are all still passing because the data they need is being correctly fetched from the external HTTP requests.
Any idea what the problem is?
The text was updated successfully, but these errors were encountered:
Sorry @surik - don't have one and don't have time to make one. I realise that isn't helpful. We switched to Walkman - does what we need and no performance issues.
The code we were testing uses a pretty basic HTTP client with one call to HTTPoison.get/2. I guess that would be the starting point
Hi folks,
Just tried out the new
global_mock
option on a project using HTTPoison. Everything looked great at first with tests seeing a massive speedup.However, it turns out with
global_mock
enabled the tests aren't actually using the cassettes. They're always making external HTTP requests instead.I tried deleting the existing cassettes to see what would happen. Interestingly the cassettes are re-created, but each is just an empty list. The tests are all still passing because the data they need is being correctly fetched from the external HTTP requests.
Any idea what the problem is?
The text was updated successfully, but these errors were encountered: