chunker: fix integration tests and hashsum issues
This commit is contained in:
parent
910c80bd02
commit
77b42aa33a
3 changed files with 83 additions and 35 deletions
|
@ -418,6 +418,7 @@ func testPreventCorruption(t *testing.T, f *Fs) {
|
|||
var chunkContents []byte
|
||||
assert.NotPanics(t, func() {
|
||||
chunkContents, err = ioutil.ReadAll(r)
|
||||
_ = r.Close()
|
||||
})
|
||||
assert.NoError(t, err)
|
||||
assert.NotEqual(t, contents, string(chunkContents))
|
||||
|
@ -451,6 +452,7 @@ func testPreventCorruption(t *testing.T, f *Fs) {
|
|||
assert.NoError(t, err)
|
||||
assert.NotPanics(t, func() {
|
||||
_, err = ioutil.ReadAll(r)
|
||||
_ = r.Close()
|
||||
})
|
||||
assert.NoError(t, err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue