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
1 changed files with 1 additions and 1 deletions

View File

@ -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)