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

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:
Graham McIntire 2026-08-04 17:50:24 -05:00
parent 43c6b3598e
commit 167ad996d7
No known key found for this signature in database
GPG key ID: F4ABF488E6029E59
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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
)