mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
test: add buffer to prevent goroutine leak
Signed-off-by: Ziheng Liu <lzhfromustc@gmail.com>
This commit is contained in:
@@ -162,7 +162,7 @@ func testConcurrentPush(c *testing.T) {
|
||||
}
|
||||
|
||||
// Push tags, in parallel
|
||||
results := make(chan error)
|
||||
results := make(chan error, len(repos))
|
||||
|
||||
for _, repo := range repos {
|
||||
go func(repo string) {
|
||||
|
||||
Reference in New Issue
Block a user