diff --git a/viper_test.go b/viper_test.go index cd7b65c..6b9754a 100644 --- a/viper_test.go +++ b/viper_test.go @@ -11,8 +11,9 @@ import ( "io" "io/ioutil" "os" - "path" + path "path/filepath" "reflect" + "runtime" "sort" "strings" "testing" @@ -183,10 +184,16 @@ func initHcl() { func initDirs(t *testing.T) (string, string, func()) { var ( - testDirs = []string{`a a`, `b`, `c\c`, `D_`} + testDirs []string config = `improbable` ) + if runtime.GOOS == "windows" { + testDirs = []string{`a a`, `b`, `D_`} + } else { + testDirs = []string{`a a`, `b`, `c\c`, `D_`} + } + root, err := ioutil.TempDir("", "") cleanup := true