mux_broker_test.go: make non blocking errChan

* in case of Dial errors to avoid a deadlocks
This commit is contained in:
Adrien Delorme 2018-12-17 11:09:56 +01:00 committed by GitHub
parent 2944030daf
commit d9e32d437c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ func TestMuxBroker(t *testing.T) {
go bc.Run()
go bs.Run()
errChan := make(chan error, 1)
errChan := make(chan error, 2)
go func() {
defer close(errChan)
c, err := bc.Dial(5)