aboutsummaryrefslogtreecommitdiffstats
path: root/common_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-09-15 21:20:58 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-09-15 21:20:58 +0200
commit7e8d7125446bb6e12a056a5a6ca979727790d0df (patch)
treedf07bada01b332d00131c33034d88935357ba0d1 /common_test.go
parentd57f90b78eeb6b09b15e3fe57609ede66df4edac (diff)
downloadgo-git-7e8d7125446bb6e12a056a5a6ca979727790d0df.tar.gz
dotgit: synced write packfile and index generation
Diffstat (limited to 'common_test.go')
-rw-r--r--common_test.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/common_test.go b/common_test.go
index d35abd3..d95ccf5 100644
--- a/common_test.go
+++ b/common_test.go
@@ -55,8 +55,9 @@ func (s *BaseSuite) buildRepositories(c *C) {
defer f.Close()
n := packfile.NewScanner(f)
- d := packfile.NewDecoder(n, r.s.ObjectStorage())
- _, err := d.Decode()
+ d, err := packfile.NewDecoder(n, r.s.ObjectStorage())
+ c.Assert(err, IsNil)
+ _, err = d.Decode()
c.Assert(err, IsNil)
s.Repositories[fixture.URL] = r
@@ -151,7 +152,8 @@ func unpackFixtures(c *C, fixtures ...[]packedFixture) map[string]*Repository {
c.Assert(err, IsNil, comment)
r := packfile.NewScanner(f)
- d := packfile.NewDecoder(r, repos[fixture.url].s.ObjectStorage())
+ d, err := packfile.NewDecoder(r, repos[fixture.url].s.ObjectStorage())
+ c.Assert(err, IsNil, comment)
_, err = d.Decode()
c.Assert(err, IsNil, comment)
c.Assert(f.Close(), IsNil, comment)