Document and validate preflight readiness
This commit is contained in:
@@ -68,3 +68,17 @@ func TestTranscriptStreamWriteFailure(t *testing.T) {
|
||||
t.Fatalf("write failure lost: %+v", failures)
|
||||
}
|
||||
}
|
||||
|
||||
func TestProbeSkipsNamedPipeWithoutOpeningIt(t *testing.T) {
|
||||
fifo := filepath.Join(t.TempDir(), "output.pipe")
|
||||
if err := syscall.Mkfifo(fifo, 0600); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
checked, err := CheckOutput(OutputSelection{TranscriptPath: fifo})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if err := ProbeOutput(context.Background(), checked); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user