MCPcopy Create free account
hub / github.com/codehamr/codehamr / timeoutC

Function timeoutC

internal/tools/nonregular_unix_test.go:15–18  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
15func 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.

Calls

no outgoing calls

Tested by

no test coverage detected