diff --git a/cmd/helm/repo_remove_test.go b/cmd/helm/repo_remove_test.go index 2a641d4c1..16c2d5916 100644 --- a/cmd/helm/repo_remove_test.go +++ b/cmd/helm/repo_remove_test.go @@ -141,15 +141,15 @@ func TestRepoRemove(t *testing.T) { } func createCacheFiles(rootDir string, repoName string) (cacheIndexFile string, cacheChartsFile string) { - idx := filepath.Join(rootDir, helmpath.CacheIndexFile(repoName)) - mf, _ := os.Create(idx) + cacheIndexFile = filepath.Join(rootDir, helmpath.CacheIndexFile(repoName)) + mf, _ := os.Create(cacheIndexFile) mf.Close() - idx2 := filepath.Join(rootDir, helmpath.CacheChartsFile(repoName)) - mf, _ = os.Create(idx2) + cacheChartsFile = filepath.Join(rootDir, helmpath.CacheChartsFile(repoName)) + mf, _ = os.Create(cacheChartsFile) mf.Close() - return idx, idx2 + return cacheIndexFile, cacheChartsFile } func testCacheFiles(t *testing.T, cacheIndexFile string, cacheChartsFile string, repoName string) {