MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / SetupSuite

Method SetupSuite

workers/workers_test.go:22–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20}
21
22func (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
32func (s *WorkersTestSuite) acquire(ctx context.Context, n int, delay time.Duration) (int, error) {
33 errg := new(errgroup.Group)

Callers

nothing calls this directly

Calls 2

NewLazySuiteObjFunction · 0.92
NewFunction · 0.92

Tested by

no test coverage detected