Fix Windows test

This commit is contained in:
Deluan
2020-01-18 01:56:17 -05:00
parent ccbdf688ea
commit 8ae4fdd5b2
2 changed files with 16 additions and 5 deletions
+6 -1
View File
@@ -1,6 +1,9 @@
package persistence
import (
"os"
"path/filepath"
"github.com/cloudsonic/sonic-server/model"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
@@ -15,7 +18,9 @@ var _ = Describe("MediaFileRepository", func() {
Describe("FindByPath", func() {
It("returns all records from a given ArtistID", func() {
Expect(repo.FindByPath("/beatles/1")).To(Equal(model.MediaFiles{
path := string(os.PathSeparator) + filepath.Join("beatles", "1")
println("Searching path", path) // TODO Remove
Expect(repo.FindByPath(path)).To(Equal(model.MediaFiles{
songComeTogether,
}))
})