Allow cache image to be disabled (workaround for #177)

This commit is contained in:
Deluan
2020-04-14 19:15:47 -04:00
parent 66275d3b94
commit db4479e720
5 changed files with 116 additions and 76 deletions
+4
View File
@@ -29,5 +29,9 @@ var _ = Describe("File Caches", func() {
It("creates the cache folder with invalid size", func() {
Expect(newFileCache("test", "abc", "test", 10)).ToNot(BeNil())
})
It("returns empty if cache size is '0'", func() {
Expect(newFileCache("test", "0", "test", 10)).To(BeNil())
})
})
})