(ctx context.Context, t *testing.T, handler http.Handler, id string)
| 936 | } |
| 937 | |
| 938 | func getOutputWithWaitCtx(ctx context.Context, t *testing.T, handler http.Handler, id string) *httptest.ResponseRecorder { |
| 939 | t.Helper() |
| 940 | path := fmt.Sprintf("/%s/output?wait=true", id) |
| 941 | req := httptest.NewRequestWithContext(ctx, http.MethodGet, path, nil) |
| 942 | w := httptest.NewRecorder() |
| 943 | handler.ServeHTTP(w, req) |
| 944 | return w |
| 945 | } |
| 946 | |
| 947 | func TestSignalProcess(t *testing.T) { |
| 948 | t.Parallel() |
no test coverage detected