From d9e32d437cfff8764ac0b9682d1fe3796e57be06 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Mon, 17 Dec 2018 11:09:56 +0100 Subject: [PATCH] mux_broker_test.go: make non blocking errChan * in case of Dial errors to avoid a deadlocks --- packer/rpc/mux_broker_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packer/rpc/mux_broker_test.go b/packer/rpc/mux_broker_test.go index fe0a6118a..ac5d9cbd2 100644 --- a/packer/rpc/mux_broker_test.go +++ b/packer/rpc/mux_broker_test.go @@ -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)