fix: use filepath.Join instead of path.Join

This commit is contained in:
Deluan
2020-02-02 20:12:46 -05:00
committed by Deluan Quintão
parent d9eb3e58cd
commit 0e01f9a0f9
6 changed files with 83 additions and 69 deletions
+9 -2
View File
@@ -1,16 +1,23 @@
package scanner
import (
"os"
"strings"
"testing"
"github.com/deluan/navidrome/log"
"github.com/deluan/navidrome/tests"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
// TODO Fix OS dependencies
func xTestScanner(t *testing.T) {
func TestScanner(t *testing.T) {
tests.Init(t, true)
log.SetLevel(log.LevelCritical)
RegisterFailHandler(Fail)
RunSpecs(t, "Scanner Suite")
}
func P(path string) string {
return strings.ReplaceAll(path, "/", string(os.PathSeparator))
}