From bba7558011b30851402a193fedc8054d6ebfb038 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 21 Nov 2024 15:21:46 -0800 Subject: [PATCH] test parall testing for creating issue with sqlite --- tests/integration/api_issue_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/integration/api_issue_test.go b/tests/integration/api_issue_test.go index 5b9f16ef96..2a42820c93 100644 --- a/tests/integration/api_issue_test.go +++ b/tests/integration/api_issue_test.go @@ -157,6 +157,7 @@ func TestAPICreateIssueParallel(t *testing.T) { for i := 0; i < 10; i++ { wg.Add(1) go func(parentT *testing.T, i int) { + defer wg.Done() parentT.Run(fmt.Sprintf("ParallelCreateIssue_%d", i), func(t *testing.T) { newTitle := title + strconv.Itoa(i) newBody := body + strconv.Itoa(i) @@ -177,8 +178,6 @@ func TestAPICreateIssueParallel(t *testing.T) { Content: newBody, Title: newTitle, }) - - wg.Done() }) }(t, i) }