From cb74da57f4512cd124c497ef3700102ab1a0496d Mon Sep 17 00:00:00 2001 From: inkychris Date: Sat, 16 Mar 2019 13:19:11 +0000 Subject: [PATCH] Changed initDirs method to terminate tests if root (temp) dir does not exist --- viper_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viper_test.go b/viper_test.go index c2715cb..c152992 100644 --- a/viper_test.go +++ b/viper_test.go @@ -209,7 +209,7 @@ func initDirs(t *testing.T) (string, string, func()) { assert.Nil(t, err) err = os.Chdir(root) - assert.Nil(t, err) + require.Nil(t, err) for _, dir := range testDirs { err = os.Mkdir(dir, 0750)