🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
More tests
Deluanc2ec142ce376
diff --git a/engine/file_caches_test.go b/engine/file_caches_test.goindex a41a7316f..f3c76b179 100644--- a/engine/file_caches_test.go+++ b/engine/file_caches_test.go@@ -20,11 +20,14 @@ var _ = Describe("File Caches", func() {Describe("newFileCache", func() {It("creates the cache folder", func() {- _, err := newFileCache("test", "1kb", "test", 10)- Expect(err).To(BeNil())+ Expect(newFileCache("test", "1k", "test", 10)).ToNot(BeNil())- _, err = os.Stat(filepath.Join(conf.Server.DataFolder, "test"))+ _, err := os.Stat(filepath.Join(conf.Server.DataFolder, "test"))Expect(os.IsNotExist(err)).To(BeFalse())})++ It("creates the cache folder with invalid size", func() {+ Expect(newFileCache("test", "abc", "test", 10)).ToNot(BeNil())+ })})})