From c49e2bb9a30ef3ea69f7b246e928c2c6c1373e52 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 27 Sep 2020 12:07:45 -0700 Subject: [PATCH] adjust --- weed/util/chunk_cache/chunk_cache_on_disk_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/util/chunk_cache/chunk_cache_on_disk_test.go b/weed/util/chunk_cache/chunk_cache_on_disk_test.go index 4b179e5d3..b2b22f74e 100644 --- a/weed/util/chunk_cache/chunk_cache_on_disk_test.go +++ b/weed/util/chunk_cache/chunk_cache_on_disk_test.go @@ -16,7 +16,7 @@ func TestOnDisk(t *testing.T) { totalDiskSizeInKB := int64(32) - cache := NewTieredChunkCache(0, tmpDir, totalDiskSizeInKB, 1024) + cache := NewTieredChunkCache(2, tmpDir, totalDiskSizeInKB, 1024) writeCount := 5 type test_data struct { @@ -58,7 +58,7 @@ func TestOnDisk(t *testing.T) { cache.Shutdown() - cache = NewTieredChunkCache(0, tmpDir, totalDiskSizeInKB, 1024) + cache = NewTieredChunkCache(2, tmpDir, totalDiskSizeInKB, 1024) for i := 0; i < 2; i++ { data := cache.GetChunk(testData[i].fileId, testData[i].size)