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:
unclejack
2017-03-30 16:50:46 +03:00
parent 5ea7e1e7af
commit f23397c0c0
9 changed files with 10 additions and 15 deletions
@@ -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()