()
| 433 | } |
| 434 | |
| 435 | func 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 | |
| 446 | func prepareBasicLifecycler(t testing.TB, cfg BasicLifecyclerConfig) (*BasicLifecycler, *mockDelegate, kv.Client, error) { |
| 447 | delegate := &mockDelegate{} |
no outgoing calls
no test coverage detected