MCPcopy Create free account
hub / github.com/cortexproject/cortex / equalStatesMap

Function equalStatesMap

pkg/util/services/manager_test.go:266–274  ·  view source on GitHub ↗
(t *testing.T, m1, m2 map[State][]Service)

Source from the content-addressed store, hash-verified

264}
265
266func equalStatesMap(t *testing.T, m1, m2 map[State][]Service) {
267 t.Helper()
268
269 states := []State{New, Starting, Running, Stopping, Terminated, Failed}
270
271 for _, s := range states {
272 require.ElementsMatch(t, m1[s], m2[s], s)
273 }
274}
275
276func serviceThatFailsToStart() Service {
277 return NewBasicService(func(serviceContext context.Context) error {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected