summaryrefslogtreecommitdiff
path: root/integration/plugin
diff options
context:
space:
mode:
authorlzhfromustc <lzhfromustc@gmail.com>2020-08-15 23:58:18 -0400
committerZiheng Liu <lzhfromustc@gmail.com>2020-08-27 18:53:43 -0400
commitd1c2f953c5e44c59c4ce688d531d94ac012a8df7 (patch)
tree842b822cef1fc7ccd556c321c131ed6f2453800b /integration/plugin
parente9b4655bc98563602d961c72fc62cb20cc143515 (diff)
downloaddocker-d1c2f953c5e44c59c4ce688d531d94ac012a8df7.tar.gz
Test: Add buffer to two channels to avoid blocking goroutine
Signed-off-by: Ziheng Liu <lzhfromustc@gmail.com>
Diffstat (limited to 'integration/plugin')
-rw-r--r--integration/plugin/logging/read_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/integration/plugin/logging/read_test.go b/integration/plugin/logging/read_test.go
index 028a488cdf..e84738a72e 100644
--- a/integration/plugin/logging/read_test.go
+++ b/integration/plugin/logging/read_test.go
@@ -73,7 +73,7 @@ func TestReadPluginNoRead(t *testing.T) {
buf := bytes.NewBuffer(nil)
- errCh := make(chan error)
+ errCh := make(chan error, 1)
go func() {
_, err := stdcopy.StdCopy(buf, buf, logs)
errCh <- err