From 6da2b7ee00642abb6f3991a38a07854b9bded814 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Fri, 18 Jul 2014 02:38:32 +1000 Subject: [PATCH] Fix peer_protocol test --- peer_protocol/protocol_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } } -- 2.48.1