aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/packfile/encoder_test.go
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/packfile/encoder_test.go
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/packfile/encoder_test.go')
-rw-r--r--plumbing/format/packfile/encoder_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/plumbing/format/packfile/encoder_test.go b/plumbing/format/packfile/encoder_test.go
index 7b6dde2..24e2082 100644
--- a/plumbing/format/packfile/encoder_test.go
+++ b/plumbing/format/packfile/encoder_test.go
@@ -302,7 +302,10 @@ func packfileFromReader(c *C, buf *bytes.Buffer) (*Packfile, func()) {
scanner := NewScanner(file)
w := new(idxfile.Writer)
- _, err = NewParser(scanner, w).Parse()
+ p, err := NewParser(scanner, w)
+ c.Assert(err, IsNil)
+
+ _, err = p.Parse()
c.Assert(err, IsNil)
index, err := w.Index()