mirror of
https://github.com/spf13/viper
synced 2025-05-06 20:27:17 +00:00
Modified testDirs list in initDirs to avoid invalid path on Windows
This commit is contained in:
parent
cb74da57f4
commit
d86fb2e6af
1 changed files with 5 additions and 1 deletions
|
@ -191,10 +191,14 @@ func initHcl() {
|
|||
func initDirs(t *testing.T) (string, string, func()) {
|
||||
|
||||
var (
|
||||
testDirs = []string{`a a`, `b`, `c\c`, `D_`}
|
||||
testDirs = []string{`a a`, `b`, `C_`}
|
||||
config = `improbable`
|
||||
)
|
||||
|
||||
if runtime.GOOS != "windows" {
|
||||
testDirs = append(testDirs, `d\d`)
|
||||
}
|
||||
|
||||
root, err := ioutil.TempDir("", "")
|
||||
require.NoError(t, err, "Failed to create temporary directory")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue