Added check to ensure temp dir exists in initDirs

This commit is contained in:
inkychris 2019-03-16 11:10:32 +00:00
parent 9e56dacc08
commit a08ef33f29

View file

@ -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() {