MCPcopy
hub / github.com/grafana/dskit / serviceThatFailsToStart

Function serviceThatFailsToStart

services/manager_test.go:280–284  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

278}
279
280func serviceThatFailsToStart() Service {
281 return NewBasicService(func(context.Context) error {
282 return errors.New("failed to start")
283 }, nil, nil)
284}
285
286func serviceThatStopsOnItsOwnAfterTimeout(timeout time.Duration) Service {
287 return NewBasicService(nil, func(serviceContext context.Context) error {

Callers 1

Calls 1

NewBasicServiceFunction · 0.85

Tested by

no test coverage detected