diff options
Diffstat (limited to 'storage')
-rw-r--r-- | storage/filesystem/internal/dotgit/dotgit_test.go | 1 | ||||
-rw-r--r-- | storage/test/storage_suite.go | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/storage/filesystem/internal/dotgit/dotgit_test.go b/storage/filesystem/internal/dotgit/dotgit_test.go index bcd8d96..3a1f194 100644 --- a/storage/filesystem/internal/dotgit/dotgit_test.go +++ b/storage/filesystem/internal/dotgit/dotgit_test.go @@ -181,6 +181,7 @@ func (s *SuiteDotGit) TestObjectPackNotFound(c *C) { c.Assert(pack, IsNil) idx, err := dir.ObjectPackIdx(plumbing.ZeroHash) + c.Assert(err, Equals, ErrPackfileNotFound) c.Assert(idx, IsNil) } diff --git a/storage/test/storage_suite.go b/storage/test/storage_suite.go index d5e1464..22225a5 100644 --- a/storage/test/storage_suite.go +++ b/storage/test/storage_suite.go @@ -184,6 +184,7 @@ func (s *BaseStorageSuite) TestObjectStorerTxSetObjectAndGetObject(c *C) { c.Assert(h.String(), Equals, expected.Hash) o, err := tx.Object(expected.Type, plumbing.NewHash(expected.Hash)) + c.Assert(err, IsNil) c.Assert(o.Hash().String(), DeepEquals, expected.Hash) } } |