elixir-tesla / tesla

The flexible HTTP client library for Elixir, with support for middleware and multiple adapters.
MIT License
2.01k stars 348 forks source link

fix: Support registered names in mock #683

Closed Raphexion closed 5 months ago

Raphexion commented 5 months ago

In some situations, the pid_holder is a registered process (e.g, MyApp.Supervisor). Process.info/1 does not support this, so we have to use Process.whereis/1 to resolve the actual pid.

This small issue was introduced between 1.9 and 1.10.