diff options
author | Felix Lange <fjl@twurst.com> | 2014-11-25 02:02:48 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2014-11-25 02:03:20 +0800 |
commit | c1fca72552386868d28ce7541691e53e55673549 (patch) | |
tree | d8905291cc056e69383a275d212ca225ca4d5d1b /p2p/message_test.go | |
parent | 205af02a1f13f6712a8f30538ddf31cf0544c8d9 (diff) | |
download | go-tangerine-c1fca72552386868d28ce7541691e53e55673549.tar.gz go-tangerine-c1fca72552386868d28ce7541691e53e55673549.tar.zst go-tangerine-c1fca72552386868d28ce7541691e53e55673549.zip |
p2p: use package rlp
Diffstat (limited to 'p2p/message_test.go')
-rw-r--r-- | p2p/message_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
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) } |