diff options
author | Joshua Sjoding <joshua.sjoding@scjalliance.com> | 2016-02-16 03:28:21 -0800 |
---|---|---|
committer | Joshua Sjoding <joshua.sjoding@scjalliance.com> | 2016-02-16 03:28:21 -0800 |
commit | e82d4918b403a641a5295b3f199586b0ab26b15c (patch) | |
tree | 7b16fa8616393ed911824ff5155f40f1b9c38716 /formats/packfile/reader_test.go | |
parent | 45478768e1fa49030b574aec13390fb2d9479836 (diff) | |
download | go-git-e82d4918b403a641a5295b3f199586b0ab26b15c.tar.gz |
Functions in core.ObjectStorage interface now return an error
Diffstat (limited to 'formats/packfile/reader_test.go')
-rw-r--r-- | formats/packfile/reader_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/formats/packfile/reader_test.go b/formats/packfile/reader_test.go index 8561a59..f460614 100644 --- a/formats/packfile/reader_test.go +++ b/formats/packfile/reader_test.go @@ -102,8 +102,8 @@ func (s *ReaderSuite) testReadPackfileGitFixture(c *C, file string, f Format) { func AssertObjects(c *C, s *core.RAWObjectStorage, expects []string) { c.Assert(len(expects), Equals, len(s.Objects)) for _, expected := range expects { - obtained, ok := s.Get(core.NewHash(expected)) - c.Assert(ok, Equals, true) + obtained, err := s.Get(core.NewHash(expected)) + c.Assert(err, IsNil) c.Assert(obtained.Hash().String(), Equals, expected) } } |