diff --git a/test/support/data_case.ex b/test/support/data_case.ex index ac75cf3c..bbbf7bc4 100644 --- a/test/support/data_case.ex +++ b/test/support/data_case.ex @@ -54,6 +54,10 @@ defmodule Microwaveprop.DataCase do Plug.Conn.send_resp(conn, 404, "not found") end) + Req.Test.stub(Microwaveprop.Weather.NarrClient, fn conn -> + Plug.Conn.send_resp(conn, 404, "not found") + end) + :ok end diff --git a/test/test_helper.exs b/test/test_helper.exs index 54561b69..372cc7b1 100644 --- a/test/test_helper.exs +++ b/test/test_helper.exs @@ -55,7 +55,7 @@ Application.ensure_all_started(:stream_data) # captures logs from the test process). Pinning these modules to # :critical drops the noise without affecting real DB error logging. Logger.put_module_level( - [Postgrex.Protocol, DBConnection.Connection], + [Postgrex.Protocol, DBConnection.Connection, DBConnection.Holder], :critical )