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

Function prepareBasicLifecyclerConfig

pkg/ring/basic_lifecycler_test.go:435–444  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

433}
434
435func prepareBasicLifecyclerConfig() BasicLifecyclerConfig {
436 return BasicLifecyclerConfig{
437 ID: testInstanceID,
438 Addr: "127.0.0.1:12345",
439 Zone: "test-zone",
440 HeartbeatPeriod: time.Minute,
441 TokensObservePeriod: 0,
442 NumTokens: 5,
443 }
444}
445
446func prepareBasicLifecycler(t testing.TB, cfg BasicLifecyclerConfig) (*BasicLifecycler, *mockDelegate, kv.Client, error) {
447 delegate := &mockDelegate{}

Calls

no outgoing calls

Tested by

no test coverage detected