1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-02-21 19:48:53 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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