From: Matt Joiner Date: Sun, 6 Oct 2013 05:05:03 +0000 (+1100) Subject: Fix TestHaveEncode now that message length prefixes are actually included in Marshal... X-Git-Tag: v1.0.0~1803 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=5dbd675be6ddf9d08d73b5f39aaf0d4224fde4bc;p=btrtrc.git Fix TestHaveEncode now that message length prefixes are actually included in Marshal output --- diff --git a/peer_protocol/protocol_test.go b/peer_protocol/protocol_test.go index 3c04aff8..caebd8ef 100644 --- a/peer_protocol/protocol_test.go +++ b/peer_protocol/protocol_test.go @@ -49,7 +49,7 @@ func TestHaveEncode(t *testing.T) { t.Fatal(err) } actualString := string(actualBytes) - expected := "\x04\x00\x00\x00\x2a" + expected := "\x00\x00\x00\x05\x04\x00\x00\x00\x2a" if actualString != expected { t.Fatalf("expected %#v, got %#v", expected, actualString) }