Unverified Commit b4ccda50 authored by Matthew Fisher's avatar Matthew Fisher Committed by GitHub

Merge pull request #3504 from adshmh/fix-left-over-dirs-from-helm-create-test

fix the bug in test code  that leaves behind temp directories during build
parents b6ab6a2a a9ba3aa8
......@@ -33,7 +33,7 @@ func TestCreateCmd(t *testing.T) {
if err != nil {
t.Fatal(err)
}
defer os.Remove(tdir)
defer os.RemoveAll(tdir)
// CD into it
pwd, err := os.Getwd()
......@@ -79,7 +79,7 @@ func TestCreateStarterCmd(t *testing.T) {
if err != nil {
t.Fatal(err)
}
defer os.Remove(tdir)
defer os.RemoveAll(tdir)
thome, err := tempHelmHome(t)
if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment