diff options
author | Carlos Cobo <toqueteos@gmail.com> | 2015-05-20 13:46:57 +0200 |
---|---|---|
committer | Carlos Cobo <toqueteos@gmail.com> | 2015-05-20 13:46:57 +0200 |
commit | c2bbf9fe8009b22d0f390f3c8c3f13937067590f (patch) | |
tree | 2beff7231ec6c80e4d07dd78ba8e6be14309f6b0 /pktline/decoder_test.go | |
parent | fc9f0643b21cfe571046e27e0c4565f3a1ee96c8 (diff) | |
download | go-git-c2bbf9fe8009b22d0f390f3c8c3f13937067590f.tar.gz |
Fix typos.
Diffstat (limited to 'pktline/decoder_test.go')
-rw-r--r-- | pktline/decoder_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pktline/decoder_test.go b/pktline/decoder_test.go index a0f85ce..7899cc8 100644 --- a/pktline/decoder_test.go +++ b/pktline/decoder_test.go @@ -25,7 +25,7 @@ func (s *DecoderSuite) TestReadLineBufferUnderflow(c *C) { j := &Decoder{strings.NewReader("00e7a\n")} line, err := j.ReadLine() - c.Assert(err, ErrorMatches, "unexepected string length") + c.Assert(err, Equals, ErrUnderflow) c.Assert(line, Equals, "") } @@ -33,7 +33,7 @@ func (s *DecoderSuite) TestReadLineBufferInvalidLen(c *C) { j := &Decoder{strings.NewReader("0001foo\n")} line, err := j.ReadLine() - c.Assert(err, ErrorMatches, "invalid length") + c.Assert(err, Equals, ErrInvalidLen) c.Assert(line, Equals, "") } |