peer_protocol/protocol_test.go | 2 +- diff --git a/peer_protocol/protocol_test.go b/peer_protocol/protocol_test.go index ca65d32b57e93fd51e3795f4758eb4656ca1e8cf..807f1dd808bcb980c5985ecab1fe27a5b2b3fb65 100644 --- a/peer_protocol/protocol_test.go +++ b/peer_protocol/protocol_test.go @@ -83,7 +83,7 @@ MaxLength: 2, } 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) } }