mirror of
https://github.com/docker/cli.git
synced 2026-09-25 07:50:37 -05:00
pkg/*: clean up a few issues
Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com> Upstream-commit: a23c456e5a136d65d02d66af398af1e3ce3a4081 Component: engine
This commit is contained in:
@@ -14,7 +14,7 @@ func TestOutputOnPrematureClose(t *testing.T) {
|
||||
|
||||
pr := NewProgressReader(reader, ChanOutput(progressChan), int64(len(content)), "Test", "Read")
|
||||
|
||||
part := make([]byte, 4, 4)
|
||||
part := make([]byte, 4)
|
||||
_, err := io.ReadFull(pr, part)
|
||||
if err != nil {
|
||||
pr.Close()
|
||||
|
||||
Reference in New Issue
Block a user