From 574c035e681124cc2e2fa36479da42294b2f61c1 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Thu, 19 Nov 2026 02:50:41 -0800 Subject: [PATCH] storage: gofmt the unheld probe test Co-Authored-By: Claude Opus 5.5 --- seaweed-block/core/storage/volume_unheld_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/seaweed-block/core/storage/volume_unheld_test.go b/seaweed-block/core/storage/volume_unheld_test.go index 43014a98b6..7a23e26b7f 100644 --- a/seaweed-block/core/storage/volume_unheld_test.go +++ b/seaweed-block/core/storage/volume_unheld_test.go @@ -108,8 +108,9 @@ func TestProbeVolumeUnheldHolderProcessDies(t *testing.T) { t.Fatal(err) } exited := make(chan struct{}) - go func() { _ = cmd.Wait(); close(exited) }() // reaped on every path - t.Cleanup(func() { // kill the holder and join its reaper, bounded + // Reaped on every path; the cleanup kills the holder and joins its reaper. + go func() { _ = cmd.Wait(); close(exited) }() + t.Cleanup(func() { _ = cmd.Process.Kill() select { case <-exited: