From 606e2170ccac5a13a11198aaf54e4219a83291ab Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Tue, 3 Aug 2021 13:36:31 +0300 Subject: In a rare cases, when user set small timeout to allocate a worker, spawned goroutine might stuck on the channel send operation and leak memory. Signed-off-by: Valery Piashchynski --- pkg/transport/pipe/pipe_factory_test.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/transport/pipe/pipe_factory_test.go') diff --git a/pkg/transport/pipe/pipe_factory_test.go b/pkg/transport/pipe/pipe_factory_test.go index 5c937a97..d243a93f 100755 --- a/pkg/transport/pipe/pipe_factory_test.go +++ b/pkg/transport/pipe/pipe_factory_test.go @@ -102,6 +102,7 @@ func Test_Pipe_PipeError(t *testing.T) { func Test_Pipe_PipeError2(t *testing.T) { cmd := exec.Command("php", "../../../tests/client.php", "echo", "pipes") + // error cause _, err := cmd.StdinPipe() if err != nil { t.Errorf("error creating the STDIN pipe: error %v", err) -- cgit v1.2.3