Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: alanprot <[email protected]>
  • Loading branch information
alanprot committed Jan 7, 2025
1 parent 442b04a commit dc929f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/store/bucket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1682,6 +1682,8 @@ func TestBucketSeries_OneBlock_InMemIndexCacheSegfault(t *testing.T) {
MaxSize: 8889,
})
testutil.Ok(t, err)
matcherCache, err := storecache.NewMatchersCache(storecache.WithSize(10000))
testutil.Ok(t, err)

var b1 *bucketBlock

Expand Down Expand Up @@ -1775,6 +1777,7 @@ func TestBucketSeries_OneBlock_InMemIndexCacheSegfault(t *testing.T) {
store := &BucketStore{
bkt: objstore.WithNoopInstr(bkt),
logger: logger,
matcherCache: matcherCache,
indexCache: indexCache,
indexReaderPool: indexheader.NewReaderPool(log.NewNopLogger(), false, 0, indexheader.NewReaderPoolMetrics(nil), indexheader.AlwaysEagerDownloadIndexHeader),
metrics: newBucketStoreMetrics(nil),
Expand Down

0 comments on commit dc929f5

Please sign in to comment.