mux_broker_test.go: make non blocking errChan
* in case of Dial errors to avoid a deadlocks
This commit is contained in:
parent
2944030daf
commit
d9e32d437c
|
@ -18,7 +18,7 @@ func TestMuxBroker(t *testing.T) {
|
||||||
go bc.Run()
|
go bc.Run()
|
||||||
go bs.Run()
|
go bs.Run()
|
||||||
|
|
||||||
errChan := make(chan error, 1)
|
errChan := make(chan error, 2)
|
||||||
go func() {
|
go func() {
|
||||||
defer close(errChan)
|
defer close(errChan)
|
||||||
c, err := bc.Dial(5)
|
c, err := bc.Dial(5)
|
||||||
|
|
Loading…
Reference in New Issue