mirror of
https://github.com/rclone/rclone.git
synced 2025-08-09 13:55:15 +02:00
chunker: fix integration tests and hashsum issues
This commit is contained in:
committed by
Nick Craig-Wood
parent
910c80bd02
commit
77b42aa33a
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user