From 0669f40e814707ce43c560f33f363d19f40e6800 Mon Sep 17 00:00:00 2001 From: Zhou Hao Date: Fri, 28 Aug 2020 13:38:29 +0800 Subject: [PATCH] cleanup tempfiles for load_test Signed-off-by: Zhou Hao --- pkg/chart/loader/load_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/chart/loader/load_test.go b/pkg/chart/loader/load_test.go index 40b86dec2..16a94d4eb 100644 --- a/pkg/chart/loader/load_test.go +++ b/pkg/chart/loader/load_test.go @@ -310,7 +310,7 @@ func TestLoadInvalidArchive(t *testing.T) { if err != nil { t.Fatal(err) } - defer os.Remove(tmpdir) + defer os.RemoveAll(tmpdir) writeTar := func(filename, internalPath string, body []byte) { dest, err := os.Create(filename)