From 6233217a31395b69aa814c7d3db5cf844eb87437 Mon Sep 17 00:00:00 2001 From: Ziheng Liu Date: Sun, 27 Oct 2019 20:22:52 -0400 Subject: [PATCH] integration/internal/container: fix a goroutine leak bug by adding 1 buffer Signed-off-by: Ziheng Liu --- integration/internal/container/exec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/internal/container/exec.go b/integration/internal/container/exec.go index 55ad23aeb5..dfd46a2436 100644 --- a/integration/internal/container/exec.go +++ b/integration/internal/container/exec.go @@ -57,7 +57,7 @@ func Exec(ctx context.Context, cli client.APIClient, id string, cmd []string) (E // read the output var outBuf, errBuf bytes.Buffer - outputDone := make(chan error) + outputDone := make(chan error, 1) go func() { // StdCopy demultiplexes the stream into two buffers