From 4eb743b259dc9a455d06591b8b39aaa289fc7331 Mon Sep 17 00:00:00 2001 From: Philip O'Toole Date: Wed, 8 Sep 2021 10:50:20 -0400 Subject: [PATCH] Revert one unneeded change --- tcp/pool/channel_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcp/pool/channel_test.go b/tcp/pool/channel_test.go index c3a7e9cd..13b8cb1e 100644 --- a/tcp/pool/channel_test.go +++ b/tcp/pool/channel_test.go @@ -236,8 +236,8 @@ func TestPoolConcurrent2(t *testing.T) { } }() - wg.Add(10) for i := 0; i < 10; i++ { + wg.Add(1) go func(i int) { conn, _ := p.Get() time.Sleep(time.Millisecond * time.Duration(rand.Intn(100)))