forked from mirrors/tar-split
tar/asm: return instead of break
5ddec2ae4a (commitcomment-12290378)
Reported-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
parent
c2c2dde4cb
commit
e0e9886972
2 changed files with 6 additions and 13 deletions
|
@ -110,10 +110,6 @@ func TestTarStreamMangledGetterPutter(t *testing.T) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// TODO test a mangled relative path assembly
|
||||
// next we'll use these to produce a tar stream.
|
||||
//_ = NewOutputTarStream(fgp, nil)
|
||||
}
|
||||
|
||||
func TestTarStream(t *testing.T) {
|
||||
|
@ -171,10 +167,7 @@ func TestTarStream(t *testing.T) {
|
|||
|
||||
rc := NewOutputTarStream(fgp, sup)
|
||||
h1 := sha1.New()
|
||||
tRdr1 := io.TeeReader(rc, h1)
|
||||
|
||||
// read it all to the bit bucket
|
||||
i, err = io.Copy(ioutil.Discard, tRdr1)
|
||||
i, err = io.Copy(h1, rc)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue