From 57bd3d4633a85f5cf103aae1dd6f0f607a26ef8c Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Wed, 13 Oct 2021 15:16:19 +0200 Subject: fix TestHashes IDK why it didn't crash earlier --- repo/repo_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'repo') diff --git a/repo/repo_test.go b/repo/repo_test.go index e3a49c7..a7d35a4 100644 --- a/repo/repo_test.go +++ b/repo/repo_test.go @@ -387,15 +387,15 @@ func TestRoundtrip(t *testing.T) { func TestHashes(t *testing.T) { dest := t.TempDir() - source := filepath.Join("testdata", "repo_8k") + source := filepath.Join("testdata", "repo_8k_zlib") chunks := make(chan IdentifiedChunk, 16) storeQueue := make(chan chunkData, 16) storeEnd := make(chan bool) repo1 := NewRepo(source, 8<<10) - repo1.chunkReadWrapper = utils.NopReadWrapper - repo1.chunkWriteWrapper = utils.NopWriteWrapper + repo1.chunkReadWrapper = utils.ZlibReader + repo1.chunkWriteWrapper = utils.ZlibWriter go repo1.loadChunks([]string{filepath.Join(source, "00000")}, chunks) for c := range chunks { fp, sk := repo1.hashChunk(c.GetId(), c.Reader()) -- cgit v1.2.3