From c32966b9e8c3b429d6c7999ab2037bd537d60420 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Mon, 15 Feb 2016 09:38:46 -0500 Subject: [PATCH] archive/tar: go1.3 and go1.4 compatibility Signed-off-by: Vincent Batts --- archive/tar/reader_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/archive/tar/reader_test.go b/archive/tar/reader_test.go index 7b148b5..821b4f0 100644 --- a/archive/tar/reader_test.go +++ b/archive/tar/reader_test.go @@ -344,7 +344,6 @@ func TestReader(t *testing.T) { tr = NewReader(f) hdrs []*Header chksums []string - rdbuf = make([]byte, 8) ) for { var hdr *Header @@ -361,7 +360,7 @@ func TestReader(t *testing.T) { continue } h := md5.New() - _, err = io.CopyBuffer(h, tr, rdbuf) // Effectively an incremental read + _, err = io.Copy(h, tr) // Effectively an incremental read if err != nil { break }