Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Mock module to work properly with Timeout middleware #668

Merged
merged 2 commits into from
Apr 25, 2024

Conversation

carrascoacd
Copy link
Contributor

@carrascoacd carrascoacd commented Apr 11, 2024

Context

Using global mocks is not encouraged but, otherwise, is hard to mock clients that use the timeout middleware. Former issue.

Solution

This change tries to find the parent with the mocked fun if exists to avoid this from happening.

cc/ @yordis @teamon 😀

@yordis yordis merged commit 7579d9f into elixir-tesla:master Apr 25, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants