Return counter from DeleteByPath

This commit is contained in:
Deluan
2020-07-12 11:48:57 -04:00
parent e55397fcdc
commit dc8368c89c
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ var _ = Describe("MediaRepository", func() {
id3 := "3333"
Expect(mr.Put(&model.MediaFile{ID: id3, Path: P("/abc/" + id3 + ".mp3")})).To(BeNil())
Expect(mr.DeleteByPath(P("/abc"))).To(BeNil())
Expect(mr.DeleteByPath(P("/abc"))).To(Equal(int64(1)))
Expect(mr.Get(id1)).ToNot(BeNil())
Expect(mr.Get(id2)).ToNot(BeNil())