()
| 20 | } |
| 21 | |
| 22 | func (s *WorkersTestSuite) SetupSuite() { |
| 23 | s.config, _ = testutil.NewLazySuiteObj(s, func() (*workers.Config, error) { |
| 24 | return &workers.Config{RequestsQueueSize: 0, WorkersNumber: 1}, nil |
| 25 | }) |
| 26 | |
| 27 | s.wks, _ = testutil.NewLazySuiteObj(s, func() (*workers.Workers, error) { |
| 28 | return workers.New(s.config()) |
| 29 | }) |
| 30 | } |
| 31 | |
| 32 | func (s *WorkersTestSuite) acquire(ctx context.Context, n int, delay time.Duration) (int, error) { |
| 33 | errg := new(errgroup.Group) |
nothing calls this directly
no test coverage detected