Files
seaweedfs/seaweed-block/cmd/blockvolume/lines_name_their_process_test.go
T
pingqiuandClaude Opus 5.5 74ac7294fc blockvolume: pin that the command adopts only lines naming its process
A guard on hostConfig's LinesNameTheirProcess, the refusal control also
checks nothing is recorded, and the M3 diagram and table state the
adoption guard (the row maps to M2 refresh and M3 adoption).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:48:06 -08:00

15 lines
549 B
Go

package main
import "testing"
// The volume this command runs adopts no primary line that names no
// process: the master stamps every line with the process it was issued
// for, and an unnamed one is re-issued for this process on its first
// report. Off, a restarted process could take an unnamed line and reuse a
// dead process's sessions.
func TestHostConfigAdoptsOnlyLinesNamingThisProcess(t *testing.T) {
if !hostConfig(flags{}, nil).LinesNameTheirProcess {
t.Fatal("the shipping command adopts primary lines that name no process")
}
}