Skip to content

Commit

Permalink
fix test case
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Ye <benye@amazon.com>
  • Loading branch information
yeya24 committed Apr 24, 2024
1 parent 32e05a3 commit 0dc4c9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/block/indexheader/header_test.go
Expand Up @@ -572,6 +572,7 @@ func TestReaderPostingsOffsets(t *testing.T) {
if _, ok := valueSet[idx]; ok {
continue
}
valueSet[idx] = struct{}{}
clusterLbls = append(clusterLbls, []labels.Label{
{Name: "cluster", Value: totalValues[idx]},
})
Expand Down Expand Up @@ -614,7 +615,7 @@ func TestReaderPostingsOffsets(t *testing.T) {
sort.Strings(vals)
rngs, err := br.PostingsOffsets("cluster", vals...)
require.NoError(t, err)
rngs2 := make([]index.Range, 0, 10)
rngs2 := make([]index.Range, 0)
for _, val := range vals {
rng2, err2 := br.PostingsOffset("cluster", val)
if err2 == NotFoundRangeErr {
Expand Down

0 comments on commit 0dc4c9b

Please sign in to comment.