fix(helm): fix the bug in test code 'cmd/helm/create_test.go' that leaves behind temp directories during build

The build process no longer leaves behind 'helm-create-*' temp directories.

Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
pull/3504/head
Arash Deshmeh 7 years ago
parent b6ab6a2af1
commit a9ba3aa897

@ -33,7 +33,7 @@ func TestCreateCmd(t *testing.T) {
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
defer os.Remove(tdir) defer os.RemoveAll(tdir)
// CD into it // CD into it
pwd, err := os.Getwd() pwd, err := os.Getwd()
@ -79,7 +79,7 @@ func TestCreateStarterCmd(t *testing.T) {
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
defer os.Remove(tdir) defer os.RemoveAll(tdir)
thome, err := tempHelmHome(t) thome, err := tempHelmHome(t)
if err != nil { if err != nil {

Loading…
Cancel
Save