diff options
author | Felix Lange <fjl@twurst.com> | 2015-12-23 08:48:55 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-02-19 18:14:48 +0800 |
commit | 7d8155714b41cda27fd2c860361c36d33e89d0a9 (patch) | |
tree | 656bc8ded88552e1ee80cd93706367686d053a32 /p2p/message_test.go | |
parent | ee1debda538857747536e8baf260630183f36869 (diff) | |
download | dexon-7d8155714b41cda27fd2c860361c36d33e89d0a9.tar dexon-7d8155714b41cda27fd2c860361c36d33e89d0a9.tar.gz dexon-7d8155714b41cda27fd2c860361c36d33e89d0a9.tar.bz2 dexon-7d8155714b41cda27fd2c860361c36d33e89d0a9.tar.lz dexon-7d8155714b41cda27fd2c860361c36d33e89d0a9.tar.xz dexon-7d8155714b41cda27fd2c860361c36d33e89d0a9.tar.zst dexon-7d8155714b41cda27fd2c860361c36d33e89d0a9.zip |
p2p: EIP-8 changes
Diffstat (limited to 'p2p/message_test.go')
-rw-r--r-- | p2p/message_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/p2p/message_test.go b/p2p/message_test.go index 8599b7e87..013214e21 100644 --- a/p2p/message_test.go +++ b/p2p/message_test.go @@ -143,7 +143,8 @@ func TestEOFSignal(t *testing.T) { } func unhex(str string) []byte { - b, err := hex.DecodeString(strings.Replace(str, "\n", "", -1)) + r := strings.NewReplacer("\t", "", " ", "", "\n", "") + b, err := hex.DecodeString(r.Replace(str)) if err != nil { panic(fmt.Sprintf("invalid hex string: %q", str)) } |