Hard time with bypass and multiple ports

Using bypass for several different ports, but only one is not working

I set up a bypass for three different url ports (10000, 11000, 12000). When running the specific test case, the test always passes, but running all tests, the bypass returns 500 status intermittently but only for port 10000.

  setup do
    %{bypass: bypass_11000} = setup_11000()
    %{bypass: bypass_10000} = setup_10000()

    %{
      bypass_11000: bypass_11000,
      bypass_10000: bypass_10000
    }
  end

  defp setup_11000() do
    config = Application.get_env(:app, :config_11000)

    %{port: port_11000} =
      config
      |> Keyword.get(:url)
      |> URI.parse()

    port_11000 = Bypass.open(port: port_11000)

    %{bypass: port_11000}
  end

  defp setup_10000() do
    config = Application.get_env(:app, :config_10000)

    %{port: port_10000} =
      config
      |> Keyword.get(:url)
      |> URI.parse()

    port_10000 = Bypass.open(port: port_10000)

    %{bypass: port_10000}
  end

Tried to log inside the bypass and I figured out that the cases that return 500 are never even logging. I’m assuming that it is crashing even before getting inside the bypass.

Any thoughts on how to debug bypass during tests?