Skip to content

Commit

Permalink
Merge pull request #3504 from adshmh/fix-left-over-dirs-from-helm-cre…
Browse files Browse the repository at this point in the history
…ate-test

fix the bug in test code  that leaves behind temp directories during build
  • Loading branch information
Matthew Fisher committed Feb 13, 2018
2 parents b6ab6a2 + a9ba3aa commit b4ccda5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/helm/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit b4ccda5

Please sign in to comment.