use ensure.TempDir instead of os.TempDir to get unique directory

Signed-off-by: Paul Brousseau <object88@gmail.com>
pull/8724/head
Paul Brousseau 5 years ago
parent 95347ba772
commit 0bde2d265a

@ -75,7 +75,7 @@ func TestLoadChartRepository(t *testing.T) {
} }
func TestLoadChartMetadataFromRepositoryConfig(t *testing.T) { func TestLoadChartMetadataFromRepositoryConfig(t *testing.T) {
parentDir := os.TempDir() parentDir := ensure.TempDir(t)
defer os.RemoveAll(parentDir) defer os.RemoveAll(parentDir)
repositoryCacheDir, _ := ioutil.TempDir(parentDir, "*-cache") repositoryCacheDir, _ := ioutil.TempDir(parentDir, "*-cache")

Loading…
Cancel
Save