diff options
author | Miguel Molina <miguel@erizocosmi.co> | 2018-08-08 16:56:20 +0200 |
---|---|---|
committer | Miguel Molina <miguel@erizocosmi.co> | 2018-08-08 16:56:20 +0200 |
commit | 5889a3b669f0f515ff445aa040afc1e7eeb2bbd1 (patch) | |
tree | 1a7e2bbe9ba7c2ae1111120ed84fe7850a934375 /plumbing/format/packfile/encoder_test.go | |
parent | 6a24b4c1f0cb9e5daf30fa7979f2643a967af1ad (diff) | |
download | go-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.go | 5 |
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() |