summaryrefslogtreecommitdiff
path: root/integration/plugin
diff options
context:
space:
mode:
authorSebastiaan van Stijn <thaJeztah@users.noreply.github.com>2020-05-08 16:00:52 +0200
committerGitHub <noreply@github.com>2020-05-08 16:00:52 +0200
commit0fc914de5c9cf13cfa972dbc0ca8034dec7c971d (patch)
treef865da2ce68f1bf744e8eee60fbfca4a5e65ddee /integration/plugin
parente184eac73a87a55bd77caf988ea9dea4b209e471 (diff)
parentc322af8019dda164bf5af974bf446c4905674e19 (diff)
downloaddocker-0fc914de5c9cf13cfa972dbc0ca8034dec7c971d.tar.gz
Merge pull request #40595 from sfzhu93/GL_2_25
[integration] add buffer to prevent goroutine leak
Diffstat (limited to 'integration/plugin')
-rw-r--r--integration/plugin/logging/logging_linux_test.go2
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)