aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/idxfile
diff options
context:
space:
mode:
authorMiguel Molina <miguel@erizocosmi.co>2018-08-08 16:56:20 +0200
committerMiguel Molina <miguel@erizocosmi.co>2018-08-08 16:56:20 +0200
commit5889a3b669f0f515ff445aa040afc1e7eeb2bbd1 (patch)
tree1a7e2bbe9ba7c2ae1111120ed84fe7850a934375 /plumbing/format/idxfile
parent6a24b4c1f0cb9e5daf30fa7979f2643a967af1ad (diff)
downloadgo-git-5889a3b669f0f515ff445aa040afc1e7eeb2bbd1.tar.gz
plumbing: packfile, allow non-seekable sources on Parser
Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
Diffstat (limited to 'plumbing/format/idxfile')
-rw-r--r--plumbing/format/idxfile/writer_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/plumbing/format/idxfile/writer_test.go b/plumbing/format/idxfile/writer_test.go
index 7c3cceb..912211d 100644
--- a/plumbing/format/idxfile/writer_test.go
+++ b/plumbing/format/idxfile/writer_test.go
@@ -24,9 +24,10 @@ func (s *WriterSuite) TestWriter(c *C) {
scanner := packfile.NewScanner(f.Packfile())
obs := new(idxfile.Writer)
- parser := packfile.NewParser(scanner, obs)
+ parser, err := packfile.NewParser(scanner, obs)
+ c.Assert(err, IsNil)
- _, err := parser.Parse()
+ _, err = parser.Parse()
c.Assert(err, IsNil)
idx, err := obs.Index()