(t *testing.T, maxOutstanding int, config Config)
| 23 | ) |
| 24 | |
| 25 | func setupFrontend(t *testing.T, maxOutstanding int, config Config) (*Frontend, error) { |
| 26 | logger := log.NewNopLogger() |
| 27 | |
| 28 | limits := MockLimits{Queriers: 3, MockLimits: queue.MockLimits{MaxOutstanding: maxOutstanding}} |
| 29 | frontend, err := New(config, limits, logger, nil, transport.NewRetry(0, nil)) |
| 30 | require.NoError(t, err) |
| 31 | |
| 32 | t.Cleanup(func() { |
| 33 | require.NoError(t, services.StopAndAwaitTerminated(context.Background(), frontend)) |
| 34 | }) |
| 35 | return frontend, nil |
| 36 | } |
| 37 | |
| 38 | func testReq(ctx context.Context, reqID, user string) *request { |
| 39 | return &request{ |
no test coverage detected