From a08ef33f29637188b0221091b9101ae230a770b8 Mon Sep 17 00:00:00 2001 From: inkychris Date: Sat, 16 Mar 2019 11:10:32 +0000 Subject: [PATCH] Added check to ensure temp dir exists in initDirs --- viper_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/viper_test.go b/viper_test.go index f4263d3..3f9ba72 100644 --- a/viper_test.go +++ b/viper_test.go @@ -196,6 +196,7 @@ func initDirs(t *testing.T) (string, string, func()) { ) root, err := ioutil.TempDir("", "") + require.NoError(t, err, "Failed to create temporary directory") cleanup := true defer func() {