Fix peer_protocol test
This commit is contained in:
parent
efb4c557d2
commit
6da2b7ee00
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user