aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/whisper_test.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-04-15 17:50:10 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-04-15 17:50:10 +0800
commit46ea193a49f60bb54cd5fc083adcc6fdf58dbdaf (patch)
tree16fc077080f7b723c737aa7f8b759a14e7c66575 /whisper/whisper_test.go
parentbcf41797cacac35879d6bc153d3e4ce3cd9896f0 (diff)
downloadgo-tangerine-46ea193a49f60bb54cd5fc083adcc6fdf58dbdaf.tar
go-tangerine-46ea193a49f60bb54cd5fc083adcc6fdf58dbdaf.tar.gz
go-tangerine-46ea193a49f60bb54cd5fc083adcc6fdf58dbdaf.tar.bz2
go-tangerine-46ea193a49f60bb54cd5fc083adcc6fdf58dbdaf.tar.lz
go-tangerine-46ea193a49f60bb54cd5fc083adcc6fdf58dbdaf.tar.xz
go-tangerine-46ea193a49f60bb54cd5fc083adcc6fdf58dbdaf.tar.zst
go-tangerine-46ea193a49f60bb54cd5fc083adcc6fdf58dbdaf.zip
whisper: remove some unneeded testing complexity
Diffstat (limited to 'whisper/whisper_test.go')
-rw-r--r--whisper/whisper_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/whisper/whisper_test.go b/whisper/whisper_test.go
index c072ba26b..35e2f0524 100644
--- a/whisper/whisper_test.go
+++ b/whisper/whisper_test.go
@@ -5,13 +5,14 @@ import (
"time"
"github.com/ethereum/go-ethereum/p2p"
+ "github.com/ethereum/go-ethereum/p2p/discover"
)
func startTestCluster(n int) []*Whisper {
// Create the batch of simulated peers
nodes := make([]*p2p.Peer, n)
for i := 0; i < n; i++ {
- nodes[i] = p2p.NewPeer(randomNodeID(), randomNodeName(), whisperCaps())
+ nodes[i] = p2p.NewPeer(discover.NodeID{}, "", nil)
}
whispers := make([]*Whisper, n)
for i := 0; i < n; i++ {