From 3babda5d45a54bab005c32e413e22ba5a5604e2c Mon Sep 17 00:00:00 2001 From: Mahmood Ali Date: Tue, 11 Dec 2018 06:49:20 -0500 Subject: [PATCH] tests: no need for buffer channel --- client/testing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/testing.go b/client/testing.go index 791047282..9eed9dc77 100644 --- a/client/testing.go +++ b/client/testing.go @@ -49,7 +49,7 @@ func TestClient(t testing.T, cb func(c *config.Config)) (*Client, func()) { t.Fatalf("err: %v", err) } return client, func() { - ch := make(chan error, 1) + ch := make(chan error) go func() { defer close(ch)