diff --git a/internal/app/imagedup/files_test.go b/internal/app/imagedup/files_test.go index 7b271c7..87137ad 100644 --- a/internal/app/imagedup/files_test.go +++ b/internal/app/imagedup/files_test.go @@ -19,7 +19,7 @@ func TestStreamFiles(t *testing.T) { t.Parallel() var cacheFile = "TestStreamFiles" - var id, err = NewImageDup("TestStreamFiles", cacheFile, 2, 10, true) + var id, err = NewImageDup("TestStreamFiles", cacheFile, 2, 3, 10, true) assert.NoError(t, err) var done = make(chan struct{}) @@ -48,7 +48,7 @@ func TestStreamFilesCancel(t *testing.T) { t.Parallel() var cacheFile = "TestStreamFiles" - var id, err = NewImageDup("TestStreamFilesCancel", cacheFile, 2, 10, true) + var id, err = NewImageDup("TestStreamFilesCancel", cacheFile, 2, 3, 10, true) assert.NoError(t, err) var done = make(chan struct{}) diff --git a/internal/app/imagedup/hash/cache_test.go b/internal/app/imagedup/hash/cache_test.go index 4a51b52..1e2a48d 100644 --- a/internal/app/imagedup/hash/cache_test.go +++ b/internal/app/imagedup/hash/cache_test.go @@ -13,7 +13,7 @@ func TestCache(t *testing.T) { var cacheFile = "testcache.json" - var cache, err = NewCache(cacheFile, "TestCache") + var cache, err = NewCache(cacheFile, "TestCache", 3) assert.NoError(t, err) files, err := path.ListFiles("../testimages") @@ -34,7 +34,7 @@ func TestCache(t *testing.T) { assert.NoError(t, err) // do it again - cache, err = NewCache(cacheFile, "TestCache2") + cache, err = NewCache(cacheFile, "TestCache2", 3) assert.NoError(t, err) numImages, _ = cache.Stats() assert.Equal(t, 3, numImages) diff --git a/internal/app/imagedup/hash/differ_test.go b/internal/app/imagedup/hash/differ_test.go index 11e745e..77d36f5 100644 --- a/internal/app/imagedup/hash/differ_test.go +++ b/internal/app/imagedup/hash/differ_test.go @@ -16,7 +16,7 @@ func TestDiffer(t *testing.T) { var cacheFile = "testdiffer.json" var inputImages = make(chan types.Pair) - var cache, err = NewCache(cacheFile, "testdiffer") + var cache, err = NewCache(cacheFile, "testdiffer", 3) assert.NoError(t, err) var differ = NewDiffer(2, 10, inputImages, cache, "testdiffer") diff --git a/internal/app/imagedup/main_test.go b/internal/app/imagedup/main_test.go index 60fb870..245926c 100644 --- a/internal/app/imagedup/main_test.go +++ b/internal/app/imagedup/main_test.go @@ -15,7 +15,7 @@ func TestNewImageDup(t *testing.T) { var cacheFile = "TestNewImageDup.json" - var dup, err = NewImageDup("TestNewImageDup", cacheFile, 2, 10, true) + var dup, err = NewImageDup("TestNewImageDup", cacheFile, 2, 3, 10, true) assert.NoError(t, err) files, err := path.ListFiles("./testimages")