0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-06-22 07:55:45 +02:00
This commit is contained in:
Lunny Xiao 2026-06-13 22:03:41 -07:00
parent 5c60a3a16f
commit 07b41769dc
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -49,11 +49,9 @@ func TestFetchRemoteCommitConcurrentDifferentCommits(t *testing.T) {
errCh := make(chan error, len(commitIDs))
var wg sync.WaitGroup
for _, commitID := range commitIDs {
wg.Add(1)
go func(commitID string) {
defer wg.Done()
wg.Go(func() {
errCh <- FetchRemoteCommit(t.Context(), targetRepo, sourceRepo, commitID)
}(commitID)
})
}
wg.Wait()
close(errCh)