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:
parent
57d0bdda23
commit
4fe4f435d9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user