aboutsummaryrefslogtreecommitdiffstats
path: root/p2p
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-01-29 09:49:50 +0800
committerFelix Lange <fjl@twurst.com>2015-02-06 07:00:36 +0800
commit488a04273639694399929b28c50eadf1bb34405b (patch)
treed6463999bdfe9bb9d2e732679867957dd53261bc /p2p
parent71765957e4442105647045a14a0a551459daddfd (diff)
downloadgo-tangerine-488a04273639694399929b28c50eadf1bb34405b.tar.gz
go-tangerine-488a04273639694399929b28c50eadf1bb34405b.tar.zst
go-tangerine-488a04273639694399929b28c50eadf1bb34405b.zip
fix clientidentity test after privkey removed
Diffstat (limited to 'p2p')
-rw-r--r--p2p/client_identity_test.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/p2p/client_identity_test.go b/p2p/client_identity_test.go
index 61c34fbf1..7b62f05ef 100644
--- a/p2p/client_identity_test.go
+++ b/p2p/client_identity_test.go
@@ -8,12 +8,8 @@ import (
)
func TestClientIdentity(t *testing.T) {
- clientIdentity := NewSimpleClientIdentity("Ethereum(G)", "0.5.16", "test", []byte("privkey"), []byte("pubkey"))
- key := clientIdentity.Privkey()
- if !bytes.Equal(key, []byte("privkey")) {
- t.Errorf("Expected Privkey to be %x, got %x", key, []byte("privkey"))
- }
- key = clientIdentity.Pubkey()
+ clientIdentity := NewSimpleClientIdentity("Ethereum(G)", "0.5.16", "test", []byte("pubkey"))
+ key := clientIdentity.Pubkey()
if !bytes.Equal(key, []byte("pubkey")) {
t.Errorf("Expected Pubkey to be %x, got %x", key, []byte("pubkey"))
}