]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Fix peer_protocol test
authorMatt Joiner <anacrolix@gmail.com>
Thu, 17 Jul 2014 16:38:32 +0000 (02:38 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Thu, 17 Jul 2014 16:38:32 +0000 (02:38 +1000)
peer_protocol/protocol_test.go

index ca65d32b57e93fd51e3795f4758eb4656ca1e8cf..807f1dd808bcb980c5985ecab1fe27a5b2b3fb65 100644 (file)
@@ -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)
        }
 }