From 79a190a6d0a0014a24213a84e281efef6c786705 Mon Sep 17 00:00:00 2001 From: Patrick Decat Date: Thu, 9 May 2019 09:35:54 +0200 Subject: [PATCH] Decrease number of concurrent subprocesses for helm repo add test case to fit within CircleCI's pipeline memory limit Signed-off-by: Patrick Decat --- cmd/helm/repo_add_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/helm/repo_add_test.go b/cmd/helm/repo_add_test.go index 0b7650fb2..7443a476a 100644 --- a/cmd/helm/repo_add_test.go +++ b/cmd/helm/repo_add_test.go @@ -174,8 +174,8 @@ func TestRepoAddConcurrentSubProcesses(t *testing.T) { } var wg sync.WaitGroup - wg.Add(3) - for i := 0; i < 3; i++ { + wg.Add(2) + for i := 0; i < 2; i++ { go func(name string) { defer wg.Done() @@ -195,7 +195,7 @@ func TestRepoAddConcurrentSubProcesses(t *testing.T) { } var name string - for i := 0; i < 3; i++ { + for i := 0; i < 2; i++ { name = fmt.Sprintf("%s-%d", testName, i) if !f.Has(name) { t.Errorf("%s was not successfully inserted into %s", name, settings.Home.RepositoryFile())