I'm implementing kinda tricky functionality with external libraries I can't mock. They needs to implement real requests to the server. So,
how can I run a web-server during tests implementation?
P.S. My config/test.exs
:
config :my_reelty, MyReelty.Endpoint,
http: [port: {:system, "PORT"}],
url: [host: "localhost", port: 5000] # Specific port
I'm trying to curl http://localhost:5000
but getting curl: (7) Failed to connect to localhost port 5000: Connection refused