diff options
author | lzhfromustc <lzhfromustc@gmail.com> | 2020-08-15 23:58:18 -0400 |
---|---|---|
committer | Ziheng Liu <lzhfromustc@gmail.com> | 2020-08-27 18:53:43 -0400 |
commit | d1c2f953c5e44c59c4ce688d531d94ac012a8df7 (patch) | |
tree | 842b822cef1fc7ccd556c321c131ed6f2453800b /integration/plugin | |
parent | e9b4655bc98563602d961c72fc62cb20cc143515 (diff) | |
download | docker-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.go | 2 |
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 |