test parall testing for creating issue with sqlite

pull/32603/head
Lunny Xiao 18 hours ago
parent a175f9805c
commit bba7558011
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
  1. 3
      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)
}

Loading…
Cancel
Save