mirror of
https://github.com/spf13/viper
synced 2025-05-07 12:47:18 +00:00
Changed initDirs method to terminate tests if root (temp) dir does not exist
This commit is contained in:
parent
3778ebe034
commit
cb74da57f4
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ func initDirs(t *testing.T) (string, string, func()) {
|
||||||
assert.Nil(t, err)
|
assert.Nil(t, err)
|
||||||
|
|
||||||
err = os.Chdir(root)
|
err = os.Chdir(root)
|
||||||
assert.Nil(t, err)
|
require.Nil(t, err)
|
||||||
|
|
||||||
for _, dir := range testDirs {
|
for _, dir := range testDirs {
|
||||||
err = os.Mkdir(dir, 0750)
|
err = os.Mkdir(dir, 0750)
|
||||||
|
|
Loading…
Add table
Reference in a new issue