(t *testing.T, store kv.Client, instanceID string)
| 493 | } |
| 494 | |
| 495 | func getInstanceFromStore(t *testing.T, store kv.Client, instanceID string) (InstanceDesc, bool) { |
| 496 | out, err := store.Get(context.Background(), testRingKey) |
| 497 | require.NoError(t, err) |
| 498 | |
| 499 | if out == nil { |
| 500 | return InstanceDesc{}, false |
| 501 | } |
| 502 | |
| 503 | ringDesc := out.(*Desc) |
| 504 | instanceDesc, ok := ringDesc.GetIngesters()[instanceID] |
| 505 | |
| 506 | return instanceDesc, ok |
| 507 | } |
no test coverage detected