diff options
Diffstat (limited to 'clients/common/common_test.go')
-rw-r--r-- | clients/common/common_test.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/clients/common/common_test.go b/clients/common/common_test.go index cc6c6d1..66a49e1 100644 --- a/clients/common/common_test.go +++ b/clients/common/common_test.go @@ -5,9 +5,10 @@ import ( "encoding/base64" "testing" - . "gopkg.in/check.v1" "gopkg.in/src-d/go-git.v4/core" - "gopkg.in/src-d/go-git.v4/formats/pktline" + "gopkg.in/src-d/go-git.v4/formats/packp/pktline" + + . "gopkg.in/check.v1" ) func Test(t *testing.T) { TestingT(t) } @@ -48,7 +49,7 @@ func (s *SuiteCommon) TestGitUploadPackInfo(c *C) { b, _ := base64.StdEncoding.DecodeString(GitUploadPackInfoFixture) i := NewGitUploadPackInfo() - err := i.Decode(pktline.NewDecoder(bytes.NewBuffer(b))) + err := i.Decode(pktline.NewScanner(bytes.NewBuffer(b))) c.Assert(err, IsNil) name := i.Capabilities.SymbolicReference("HEAD") @@ -70,7 +71,7 @@ func (s *SuiteCommon) TestGitUploadPackInfoNoHEAD(c *C) { b, _ := base64.StdEncoding.DecodeString(GitUploadPackInfoNoHEADFixture) i := NewGitUploadPackInfo() - err := i.Decode(pktline.NewDecoder(bytes.NewBuffer(b))) + err := i.Decode(pktline.NewScanner(bytes.NewBuffer(b))) c.Assert(err, IsNil) name := i.Capabilities.SymbolicReference("HEAD") @@ -86,7 +87,7 @@ func (s *SuiteCommon) TestGitUploadPackInfoEmpty(c *C) { b := bytes.NewBuffer(nil) i := NewGitUploadPackInfo() - err := i.Decode(pktline.NewDecoder(b)) + err := i.Decode(pktline.NewScanner(b)) c.Assert(err, ErrorMatches, "permanent.*empty.*") } |