test parall testing for creating issue with sqlite

This commit is contained in:
Lunny Xiao 2024-11-21 15:21:46 -08:00
parent a175f9805c
commit bba7558011
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 1 additions and 2 deletions

View File

@ -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)
}