Fix tests for Cover service

This commit is contained in:
Deluan
2020-04-09 12:13:54 -04:00
parent 4fc88f23e9
commit 5265d0234f
5 changed files with 44 additions and 21 deletions
+2 -2
View File
@@ -22,9 +22,9 @@ func (m *MockMediaFile) SetError(err bool) {
m.err = err
}
func (m *MockMediaFile) SetData(j string, size int) {
func (m *MockMediaFile) SetData(j string) {
m.data = make(map[string]model.MediaFile)
var l = make(model.MediaFiles, size)
var l = model.MediaFiles{}
err := json.Unmarshal([]byte(j), &l)
if err != nil {
fmt.Println("ERROR: ", err)