all: fix goroutine leaks in unit tests by adding 1-elem channel buffer (#20666)
This fixes a bunch of cases where a timeout in the test would leak a goroutine.
This commit is contained in:
@ -297,7 +297,7 @@ func TestClientSubscribeClose(t *testing.T) {
|
||||
|
||||
var (
|
||||
nc = make(chan int)
|
||||
errc = make(chan error)
|
||||
errc = make(chan error, 1)
|
||||
sub *ClientSubscription
|
||||
err error
|
||||
)
|
||||
|
Reference in New Issue
Block a user