timeoutC bounds the hang these tests exist to catch, well under go test's own package timeout so a regression fails fast with a named cause.
(t *testing.T)
| 13 | // timeoutC bounds the hang these tests exist to catch, well under go test's |
| 14 | // own package timeout so a regression fails fast with a named cause. |
| 15 | func timeoutC(t *testing.T) <-chan time.Time { |
| 16 | t.Helper() |
| 17 | return time.After(5 * time.Second) |
| 18 | } |
| 19 | |
| 20 | // mkfifo creates a FIFO in a temp dir; opening it for read OR write would |
| 21 | // block forever with no peer, which is exactly what the guards must prevent. |
no outgoing calls
no test coverage detected