Skip to content

Commit

Permalink
Delete test case
Browse files Browse the repository at this point in the history
Signed-off-by: haanhvu <haanh6594@gmail.com>
  • Loading branch information
haanhvu committed Aug 30, 2022
1 parent e09aee2 commit 2cf4450
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions pkg/receive/hashring_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,22 +315,6 @@ func TestKetamaHashringReplicationConsistency(t *testing.T) {
}
}

func TestHashringAlgorithmFromHashringConfig(t *testing.T) {
cfg := []HashringConfig{
{
Endpoints: []string{"node1"},
Algorithm: "hashmod",
},
}

hashring := newMultiHashring(AlgorithmKetama, 3, cfg)
expectedHashring := &multiHashring{
cache: make(map[string]simpleHashring(cfg[0].Endpoints)),
}

require.Equal(t, expectedHashring, hashring)
}

func makeSeries() []prompb.TimeSeries {
numSeries := 10000
series := make([]prompb.TimeSeries, numSeries)
Expand Down

0 comments on commit 2cf4450

Please sign in to comment.