From 78013f890468786058a6aadaae6b62abe5a2641f Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Tue, 4 Aug 2026 17:52:31 -0500 Subject: [PATCH] fix: suppress Task.Supervised sandbox-cleanup crash noise MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fire-and-forget tasks spawned via async_stream_nolink on the PartitionSupervisor outlive the test sandbox owner in :manual mode. When the owner exits, descendant tasks get shutdown on next DB checkout — the process crash is logged at [error] by Task.Supervised. Same benign sandbox-cleanup category as the already-suppressed Postgrex.Protocol, DBConnection.Connection, and DBConnection.Holder. --- test/test_helper.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_helper.exs b/test/test_helper.exs index 372cc7b1..a48c2c1c 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, DBConnection.Holder], + [Postgrex.Protocol, DBConnection.Connection, DBConnection.Holder, Task.Supervised], :critical )