Skip to content

Commit 92a3374

Browse files
committed
fix test
Signed-off-by: alanprot <[email protected]>
1 parent 9817d07 commit 92a3374

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

pkg/compactor/shuffle_sharding_grouper_test.go

+4
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,10 @@ type RingMock struct {
747747
mock.Mock
748748
}
749749

750+
func (r *RingMock) GetInstanceIdByAddr(addr string) (string, error) {
751+
return "", nil
752+
}
753+
750754
func (r *RingMock) Collect(ch chan<- prometheus.Metric) {}
751755

752756
func (r *RingMock) Describe(ch chan<- *prometheus.Desc) {}

pkg/ring/util_test.go

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ type RingMock struct {
1717
mock.Mock
1818
}
1919

20+
func (r *RingMock) GetInstanceIdByAddr(addr string) (string, error) {
21+
return "", nil
22+
}
23+
2024
func (r *RingMock) Collect(ch chan<- prometheus.Metric) {}
2125

2226
func (r *RingMock) Describe(ch chan<- *prometheus.Desc) {}

0 commit comments

Comments
 (0)