1
0
Fork 0
forked from mirrors/tar-split

archive/tar: go1.3 and go1.4 compatibility

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2016-02-15 09:38:46 -05:00
parent 10db8408f6
commit c32966b9e8

View file

@ -344,7 +344,6 @@ func TestReader(t *testing.T) {
tr = NewReader(f) tr = NewReader(f)
hdrs []*Header hdrs []*Header
chksums []string chksums []string
rdbuf = make([]byte, 8)
) )
for { for {
var hdr *Header var hdr *Header
@ -361,7 +360,7 @@ func TestReader(t *testing.T) {
continue continue
} }
h := md5.New() 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 { if err != nil {
break break
} }