summaryrefslogtreecommitdiff
path: root/pkg/transport/pipe/pipe_factory_test.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-08-03 13:36:31 +0300
committerValery Piashchynski <[email protected]>2021-08-03 13:36:31 +0300
commit606e2170ccac5a13a11198aaf54e4219a83291ab (patch)
tree6eeb30453e7a1582f339e78772d639f00115221c /pkg/transport/pipe/pipe_factory_test.go
parent31752d8bd20294c7d52cd3612fbf18e44ce42637 (diff)
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 <[email protected]>
Diffstat (limited to 'pkg/transport/pipe/pipe_factory_test.go')
-rwxr-xr-xpkg/transport/pipe/pipe_factory_test.go1
1 files changed, 1 insertions, 0 deletions
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)