You've already forked sap-jenkins-library
							
							
				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:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user