Skip to content

Commit

Permalink
Stylistic updates
Browse files Browse the repository at this point in the history
  • Loading branch information
paul1r committed Nov 6, 2023
1 parent 2cb997f commit 231c838
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tools/tsdb/bloom-tester/readlib_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,13 @@ package main
import (
"github.com/grafana/loki/pkg/logproto"
bt "github.com/grafana/loki/pkg/storage/bloom/v1"
"github.com/prometheus/client_golang/prometheus"
"testing"

"github.com/stretchr/testify/require"
)

func TestSearchSbf(t *testing.T) {
/*tokenizer := four
searchString := "trace"
*/
experiment := NewExperiment(
"token=4skip0_error=1%_indexchunks=true",
four,
Expand Down Expand Up @@ -71,7 +68,7 @@ func TestSearchSbf(t *testing.T) {
} {
t.Run(tc.desc, func(t *testing.T) {
chunk := logproto.ChunkRef{From: 0, Through: 999999, Checksum: 1}
bloomtokenizer, _ := bt.NewBloomTokenizer(nil)
bloomtokenizer, _ := bt.NewBloomTokenizer(prometheus.DefaultRegisterer)
sbf := experiment.bloom()
tokens := bloomtokenizer.TokenizeLineWithChunkPrefix(tc.inputLine, chunk)
for _, tokenSet := range tokens {
Expand Down

0 comments on commit 231c838

Please sign in to comment.