diff --git a/cmd/helm/repo_add_test.go b/cmd/helm/repo_add_test.go index 2e36decbfc66e8f2f328fcc9fabcd3d786807cb4..1f49e45eac0b2f229617a4122c5ea113fa47a21a 100644 --- a/cmd/helm/repo_add_test.go +++ b/cmd/helm/repo_add_test.go @@ -36,7 +36,7 @@ func TestRepoAddCmd(t *testing.T) { cleanup := resetEnv() defer func() { srv.Stop() - os.Remove(thome.String()) + os.RemoveAll(thome.String()) cleanup() }() if err := ensureTestHome(thome, t); err != nil { @@ -72,7 +72,7 @@ func TestRepoAdd(t *testing.T) { hh := thome defer func() { ts.Stop() - os.Remove(thome.String()) + os.RemoveAll(thome.String()) cleanup() }() if err := ensureTestHome(hh, t); err != nil { diff --git a/cmd/helm/repo_remove_test.go b/cmd/helm/repo_remove_test.go index 84244ae986640893fe97cc01570654c5d6f937a5..63082b42eab323f4a31b229dc32f7cbf2a7ba16a 100644 --- a/cmd/helm/repo_remove_test.go +++ b/cmd/helm/repo_remove_test.go @@ -37,7 +37,7 @@ func TestRepoRemove(t *testing.T) { cleanup := resetEnv() defer func() { ts.Stop() - os.Remove(thome.String()) + os.RemoveAll(thome.String()) cleanup() }() if err := ensureTestHome(hh, t); err != nil { diff --git a/cmd/helm/repo_update_test.go b/cmd/helm/repo_update_test.go index 0d0a313509bf2bc48f9e1cb0e850e77dbf83def2..e6f2af32f99f6b6bfa6ca7acdb05761da7e13720 100644 --- a/cmd/helm/repo_update_test.go +++ b/cmd/helm/repo_update_test.go @@ -75,7 +75,7 @@ func TestUpdateCharts(t *testing.T) { cleanup := resetEnv() defer func() { ts.Stop() - os.Remove(thome.String()) + os.RemoveAll(thome.String()) cleanup() }() if err := ensureTestHome(hh, t); err != nil {