Skip to content

Commit bba7558

Browse files
committed
test parall testing for creating issue with sqlite
1 parent a175f98 commit bba7558

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/integration/api_issue_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ func TestAPICreateIssueParallel(t *testing.T) {
157157
for i := 0; i < 10; i++ {
158158
wg.Add(1)
159159
go func(parentT *testing.T, i int) {
160+
defer wg.Done()
160161
parentT.Run(fmt.Sprintf("ParallelCreateIssue_%d", i), func(t *testing.T) {
161162
newTitle := title + strconv.Itoa(i)
162163
newBody := body + strconv.Itoa(i)
@@ -177,8 +178,6 @@ func TestAPICreateIssueParallel(t *testing.T) {
177178
Content: newBody,
178179
Title: newTitle,
179180
})
180-
181-
wg.Done()
182181
})
183182
}(t, i)
184183
}

0 commit comments

Comments
 (0)