]> Sergey Matveev's repositories - btrtrc.git/blobdiff - peer_protocol/protocol_test.go
Drop support for go 1.20
[btrtrc.git] / peer_protocol / protocol_test.go
index eabbd54533e8f0e32ca984bebf1c5ee5fe812036..df01a1a676f49dc26907f6ab135864b590b6b577 100644 (file)
@@ -82,7 +82,7 @@ func TestShortRead(t *testing.T) {
        }
        msg := new(Message)
        err := dec.Decode(msg)
-       if !strings.Contains(err.Error(), "1 bytes unused in message type 0") {
+       if !strings.Contains(err.Error(), "1 unused bytes in message type Choke") {
                t.Fatal(err)
        }
 }