MCPcopy Create free account
hub / github.com/PostHog/duckgres / waitForSignal

Function waitForSignal

cmd/cache-proxy/proxy_test.go:56–63  ·  view source on GitHub ↗
(t *testing.T, ch <-chan struct{}, msg string)

Source from the content-addressed store, hash-verified

54}
55
56func waitForSignal(t *testing.T, ch <-chan struct{}, msg string) {
57 t.Helper()
58 select {
59 case <-ch:
60 case <-time.After(2 * time.Second):
61 t.Fatal(msg)
62 }
63}
64
65func waitForRecorder(t *testing.T, ch <-chan *httptest.ResponseRecorder, msg string) *httptest.ResponseRecorder {
66 t.Helper()

Calls

no outgoing calls

Tested by

no test coverage detected