From 0892536cd57a786ed078ad2a92321e97785b146a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Lindh=C3=A9?= Date: Fri, 10 Apr 2020 14:44:31 +0200 Subject: [PATCH] Rename testIndices function to testCacheFiles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Lindhé --- cmd/helm/repo_remove_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/helm/repo_remove_test.go b/cmd/helm/repo_remove_test.go index dbba7f5de..5d08f86d9 100644 --- a/cmd/helm/repo_remove_test.go +++ b/cmd/helm/repo_remove_test.go @@ -74,7 +74,7 @@ func TestRepoRemove(t *testing.T) { t.Errorf("Unexpected output: %s", b.String()) } - testIndices(t, idx, idx2, testRepoName) + testCacheFiles(t, idx, idx2, testRepoName) f, err := repo.LoadFile(repoFile) if err != nil { @@ -136,7 +136,7 @@ func TestRepoRemove(t *testing.T) { } cacheIndex := idxs[repoName][0] cacheChart := idxs[repoName][1] - testIndices(t, cacheIndex, cacheChart, repoName) + testCacheFiles(t, cacheIndex, cacheChart, repoName) } } @@ -152,7 +152,7 @@ func indexing(rootDir string, repoName string) (cacheIndexFile string, cacheChar return idx, idx2 } -func testIndices(t *testing.T, cacheIndexFile string, cacheChartsFile string, repoName string) { +func testCacheFiles(t *testing.T, cacheIndexFile string, cacheChartsFile string, repoName string) { if _, err := os.Stat(cacheIndexFile); err == nil { t.Errorf("Error cache index file was not removed for repository %s", repoName) }