1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-10-30 23:57:50 +02:00

(fix) clean up tmp dir in test (#2169)

This commit is contained in:
Oliver Nocon
2020-10-13 11:19:01 +02:00
committed by GitHub
parent 57d0bdda23
commit 4fe4f435d9

View File

@@ -75,6 +75,7 @@ func TestGetResourceParameter(t *testing.T) {
t.Run(testCase.name, func(t *testing.T) {
// init
dir, tempDirErr := ioutil.TempDir("", "")
defer os.RemoveAll(dir) // clean up
require.NoError(t, tempDirErr)
require.DirExists(t, dir, "Failed to create temporary directory")
// test