Skip to content

Commit

Permalink
fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
anysql committed Jan 15, 2025
1 parent fb08cde commit da7c249
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pkg/chunk/cached_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/chunk/disk_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit da7c249

Please sign in to comment.