Skip to content

Commit

Permalink
test parall testing for creating issue with sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Nov 21, 2024
1 parent a175f98 commit bba7558
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/integration/api_issue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -177,8 +178,6 @@ func TestAPICreateIssueParallel(t *testing.T) {
Content: newBody,
Title: newTitle,
})

wg.Done()
})
}(t, i)
}
Expand Down

0 comments on commit bba7558

Please sign in to comment.