fix: suppress NARR stub noise and sandbox-cleanup Holder shutdown logs
Some checks failed
Build and Push / Build and Push Docker Image (push) Has been cancelled
Some checks failed
Build and Push / Build and Push Docker Image (push) Has been cancelled
Add default NarrClient 404 stub to DataCase so incidental inline NarrFetchWorker execution doesn't log 500 errors in unrelated tests. Add DBConnection.Holder to the sandbox-cleanup noise suppression list — same benign 'owner exited' category as the already-suppressed Postgrex.Protocol and DBConnection.Connection.
This commit is contained in:
parent
43c6b3598e
commit
167ad996d7
2 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue