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:
parent
10db8408f6
commit
c32966b9e8
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue