Unverified Commit 5e2362e0 authored by Matthew Fisher's avatar Matthew Fisher Committed by GitHub

Merge pull request #3543 from adshmh/fix-left-over-repotest-dirs-from-tests

Clean up temporary "helm-repotest-*" directories left behind by tests under cmd/helm
parents 5a489eb9 55cc23cb
......@@ -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 {
......
......@@ -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 {
......
......@@ -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 {
......
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