diff --git a/pkg/chunk/cached_store_test.go b/pkg/chunk/cached_store_test.go index feecc04fd4d1..3af67061d54a 100644 --- a/pkg/chunk/cached_store_test.go +++ b/pkg/chunk/cached_store_test.go @@ -255,11 +255,11 @@ func TestFillCache(t *testing.T) { } // check - missBytes, err := store.CheckCache(10, 1024) + missBytes, err := store.CheckCache(10, 1024, nil) assert.Nil(t, err) assert.Equal(t, uint64(0), missBytes) - missBytes, err = store.CheckCache(11, uint32(bsize)) + missBytes, err = store.CheckCache(11, uint32(bsize), nil) assert.Nil(t, err) assert.Equal(t, uint64(0), missBytes) @@ -273,7 +273,7 @@ func TestFillCache(t *testing.T) { } // check again - missBytes, err = store.CheckCache(11, uint32(bsize)) + missBytes, err = store.CheckCache(11, uint32(bsize), nil) assert.Nil(t, err) assert.Equal(t, uint64(bsize), missBytes) } diff --git a/pkg/chunk/disk_cache_test.go b/pkg/chunk/disk_cache_test.go index d8977834325e..5d4ff38795fa 100644 --- a/pkg/chunk/disk_cache_test.go +++ b/pkg/chunk/disk_cache_test.go @@ -342,7 +342,7 @@ func TestCacheManager(t *testing.T) { rc, _ := m.load(k1) require.Nil(t, rc) - exist := m.exist(k1) + exist,_ := m.exist(k1) require.False(t, exist) s2 := m.getStore(k1)