diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-04-15 17:50:10 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-04-15 17:50:10 +0800 |
commit | 46ea193a49f60bb54cd5fc083adcc6fdf58dbdaf (patch) | |
tree | 16fc077080f7b723c737aa7f8b759a14e7c66575 /whisper/peer_test.go | |
parent | bcf41797cacac35879d6bc153d3e4ce3cd9896f0 (diff) | |
download | go-tangerine-46ea193a49f60bb54cd5fc083adcc6fdf58dbdaf.tar.gz go-tangerine-46ea193a49f60bb54cd5fc083adcc6fdf58dbdaf.tar.zst go-tangerine-46ea193a49f60bb54cd5fc083adcc6fdf58dbdaf.zip |
whisper: remove some unneeded testing complexity
Diffstat (limited to 'whisper/peer_test.go')
-rw-r--r-- | whisper/peer_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/whisper/peer_test.go b/whisper/peer_test.go index 5f24504da..53aff7c55 100644 --- a/whisper/peer_test.go +++ b/whisper/peer_test.go @@ -5,6 +5,7 @@ import ( "time" "github.com/ethereum/go-ethereum/p2p" + "github.com/ethereum/go-ethereum/p2p/discover" ) type testPeer struct { @@ -15,7 +16,7 @@ type testPeer struct { func startTestPeer() *testPeer { // Create a simulated P2P remote peer and data streams to it - remote := p2p.NewPeer(randomNodeID(), randomNodeName(), whisperCaps()) + remote := p2p.NewPeer(discover.NodeID{}, "", nil) tester, tested := p2p.MsgPipe() // Create a whisper client and connect with it to the tester peer @@ -30,7 +31,7 @@ func startTestPeer() *testPeer { client.handlePeer(remote, tested) }() - // Assemble and return the test peer + return &testPeer{ client: client, stream: tester, |