From c1fca72552386868d28ce7541691e53e55673549 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Mon, 24 Nov 2014 19:02:48 +0100 Subject: p2p: use package rlp --- p2p/message_test.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'p2p/message_test.go') diff --git a/p2p/message_test.go b/p2p/message_test.go index 1edabc4e7..02d70a28b 100644 --- a/p2p/message_test.go +++ b/p2p/message_test.go @@ -46,6 +46,9 @@ func TestEncodeDecodeMsg(t *testing.T) { if err != nil { t.Fatalf("first payload item decode error: %v", err) } + if v := data.Len(); v != 2 { + t.Errorf("incorrect data.Len(): got %v, expected %d", v, 1) + } if v := data.Get(0).Uint(); v != 1 { t.Errorf("incorrect data[0]: got %v, expected %d", v, 1) } -- cgit