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
pull/2919/merge
Matthew Fisher 7 years ago committed by GitHub
commit 5e2362e008
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 {

Loading…
Cancel
Save