diff options
author | Ziheng Liu <lzhfromustc@gmail.com> | 2020-02-25 17:13:25 -0500 |
---|---|---|
committer | Ziheng Liu <lzhfromustc@gmail.com> | 2020-02-27 21:37:26 -0500 |
commit | c322af8019dda164bf5af974bf446c4905674e19 (patch) | |
tree | 0800edb001d608e04b00c0e8ae2be15e81af8f99 /integration/plugin | |
parent | d706420b5d0f16822f4b2e9d717270728393c60c (diff) | |
download | docker-c322af8019dda164bf5af974bf446c4905674e19.tar.gz |
test: add buffer to prevent goroutine leak
Signed-off-by: Ziheng Liu <lzhfromustc@gmail.com>
Diffstat (limited to 'integration/plugin')
-rw-r--r-- | integration/plugin/logging/logging_linux_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/integration/plugin/logging/logging_linux_test.go b/integration/plugin/logging/logging_linux_test.go index a959e86bcc..2af0237f7c 100644 --- a/integration/plugin/logging/logging_linux_test.go +++ b/integration/plugin/logging/logging_linux_test.go @@ -47,7 +47,7 @@ func TestContinueAfterPluginCrash(t *testing.T) { attach, err := client.ContainerAttach(context.Background(), id, types.ContainerAttachOptions{Stream: true, Stdout: true}) assert.NilError(t, err) - chErr := make(chan error) + chErr := make(chan error, 1) go func() { defer close(chErr) rdr := bufio.NewReader(attach.Reader) |