(t *testing.T, ch <-chan struct{}, msg string)
| 54 | } |
| 55 | |
| 56 | func 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 | |
| 65 | func waitForRecorder(t *testing.T, ch <-chan *httptest.ResponseRecorder, msg string) *httptest.ResponseRecorder { |
| 66 | t.Helper() |
no outgoing calls
no test coverage detected