From 64fa89d406697e6d389cdd6be2ca82bfaa85a3fc Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Mon, 12 Oct 2015 22:07:56 +0200 Subject: [PATCH] Add error checks --- repository/repository_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/repository/repository_test.go b/repository/repository_test.go index b82a2c76a..7589408a7 100644 --- a/repository/repository_test.go +++ b/repository/repository_test.go @@ -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",