From 5dbd675be6ddf9d08d73b5f39aaf0d4224fde4bc Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Sun, 6 Oct 2013 16:05:03 +1100 Subject: [PATCH] Fix TestHaveEncode now that message length prefixes are actually included in Marshal output --- peer_protocol/protocol_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } -- 2.48.1