mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
storage: gofmt the unheld probe test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fcf5dc72d7
commit
574c035e68
1 file changed
+3
-2
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user