mirror of
https://github.com/go-gitea/gitea.git
synced 2026-06-22 07:55:45 +02:00
update
This commit is contained in:
parent
5c60a3a16f
commit
07b41769dc
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user