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

Function checkNormalised

ring/lifecycler_test.go:81–87  ·  view source on GitHub ↗
(d interface{}, id string)

Source from the content-addressed store, hash-verified

79}
80
81func checkNormalised(d interface{}, id string) bool {
82 desc, ok := d.(*Desc)
83 return ok &&
84 len(desc.Ingesters) == 1 &&
85 desc.Ingesters[id].State == ACTIVE &&
86 len(desc.Ingesters[id].Tokens) == 1
87}
88
89func TestLifecyclerConfig_Validate(t *testing.T) {
90 t.Parallel()

Calls

no outgoing calls

Tested by

no test coverage detected