tests: no need for buffer channel

This commit is contained in:
Mahmood Ali 2018-12-11 06:49:20 -05:00
parent 5a487ac884
commit 3babda5d45

View file

@ -49,7 +49,7 @@ func TestClient(t testing.T, cb func(c *config.Config)) (*Client, func()) {
t.Fatalf("err: %v", err) t.Fatalf("err: %v", err)
} }
return client, func() { return client, func() {
ch := make(chan error, 1) ch := make(chan error)
go func() { go func() {
defer close(ch) defer close(ch)