mirror of
https://github.com/spf13/viper
synced 2025-05-07 12:47:18 +00:00
Added check to ensure temp dir exists in initDirs
This commit is contained in:
parent
9e56dacc08
commit
a08ef33f29
1 changed files with 1 additions and 0 deletions
|
@ -196,6 +196,7 @@ func initDirs(t *testing.T) (string, string, func()) {
|
||||||
)
|
)
|
||||||
|
|
||||||
root, err := ioutil.TempDir("", "")
|
root, err := ioutil.TempDir("", "")
|
||||||
|
require.NoError(t, err, "Failed to create temporary directory")
|
||||||
|
|
||||||
cleanup := true
|
cleanup := true
|
||||||
defer func() {
|
defer func() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue