mirror of
https://github.com/restic/restic.git
synced 2024-12-25 09:18:55 +00:00
Add error checks
This commit is contained in:
parent
eb73182fcf
commit
64fa89d406
1 changed files with 2 additions and 0 deletions
|
@ -91,6 +91,7 @@ func TestSave(t *testing.T) {
|
|||
|
||||
// read back
|
||||
buf, err := repo.LoadBlob(pack.Data, id, make([]byte, size))
|
||||
OK(t, err)
|
||||
|
||||
Assert(t, len(buf) == len(data),
|
||||
"number of bytes read back does not match: expected %d, got %d",
|
||||
|
@ -121,6 +122,7 @@ func TestSaveFrom(t *testing.T) {
|
|||
|
||||
// read back
|
||||
buf, err := repo.LoadBlob(pack.Data, id, make([]byte, size))
|
||||
OK(t, err)
|
||||
|
||||
Assert(t, len(buf) == len(data),
|
||||
"number of bytes read back does not match: expected %d, got %d",
|
||||
|
|
Loading…
Reference in a new issue