Fix FileHaunter tests

This commit is contained in:
Deluan 2023-12-02 18:43:24 -05:00 committed by Joe Stump
parent 352950ac7d
commit 14031f96e1
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -29,7 +29,7 @@ var _ = Describe("FileHaunter", func() {
Expect(err).ToNot(HaveOccurred())
DeferCleanup(func() { _ = os.RemoveAll(tempDir) })
fsCache, err = fscache.NewCacheWithHaunter(fs, fscache.NewLRUHaunterStrategy(cache.NewFileHaunter("", maxItems, maxSize, 200*time.Millisecond)))
fsCache, err = fscache.NewCacheWithHaunter(fs, fscache.NewLRUHaunterStrategy(cache.NewFileHaunter("", maxItems, maxSize, 400*time.Millisecond)))
Expect(err).ToNot(HaveOccurred())
DeferCleanup(fsCache.Clean)