aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/peer_test.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2014-11-25 02:02:48 +0800
committerFelix Lange <fjl@twurst.com>2014-11-25 02:03:20 +0800
commitc1fca72552386868d28ce7541691e53e55673549 (patch)
treed8905291cc056e69383a275d212ca225ca4d5d1b /p2p/peer_test.go
parent205af02a1f13f6712a8f30538ddf31cf0544c8d9 (diff)
downloaddexon-c1fca72552386868d28ce7541691e53e55673549.tar
dexon-c1fca72552386868d28ce7541691e53e55673549.tar.gz
dexon-c1fca72552386868d28ce7541691e53e55673549.tar.bz2
dexon-c1fca72552386868d28ce7541691e53e55673549.tar.lz
dexon-c1fca72552386868d28ce7541691e53e55673549.tar.xz
dexon-c1fca72552386868d28ce7541691e53e55673549.tar.zst
dexon-c1fca72552386868d28ce7541691e53e55673549.zip
p2p: use package rlp
Diffstat (limited to 'p2p/peer_test.go')
-rw-r--r--p2p/peer_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/peer_test.go b/p2p/peer_test.go
index 1afa0ab17..56cd4d890 100644
--- a/p2p/peer_test.go
+++ b/p2p/peer_test.go
@@ -57,7 +57,7 @@ func TestPeerProtoReadMsg(t *testing.T) {
if err != nil {
t.Errorf("data decoding error: %v", err)
}
- expdata := []interface{}{1, []byte{0x30, 0x30, 0x30}}
+ expdata := []interface{}{[]byte{0x01}, []byte{0x30, 0x30, 0x30}}
if !reflect.DeepEqual(data.Slice(), expdata) {
t.Errorf("incorrect msg data %#v", data.Slice())
}