From: Matt Joiner Date: Thu, 17 Jul 2014 16:38:32 +0000 (+1000) Subject: Fix peer_protocol test X-Git-Tag: v1.0.0~1653 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=6da2b7ee00642abb6f3991a38a07854b9bded814;p=btrtrc.git Fix peer_protocol test --- diff --git a/peer_protocol/protocol_test.go b/peer_protocol/protocol_test.go index ca65d32b..807f1dd8 100644 --- a/peer_protocol/protocol_test.go +++ b/peer_protocol/protocol_test.go @@ -83,7 +83,7 @@ func TestShortRead(t *testing.T) { } msg := new(Message) err := dec.Decode(msg) - if !strings.Contains(err.Error(), "short read") { + if !strings.Contains(err.Error(), "1 bytes unused in message type 0") { t.Fatal(err) } }