aboutsummaryrefslogtreecommitdiffstats
path: root/pktline/decoder_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'pktline/decoder_test.go')
-rw-r--r--pktline/decoder_test.go4
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, "")
}