diff options
author | Elad <theman@elad.im> | 2019-01-25 00:23:34 +0800 |
---|---|---|
committer | Anton Evangelatov <anton.evangelatov@gmail.com> | 2019-01-25 00:23:34 +0800 |
commit | 2abeb35d5425d72c2f7fdfe4209f7a94fac52a8e (patch) | |
tree | bc2fde833ebbfec356bc2bf1b359d0e0b4b7f36f /p2p/testing/protocoltester.go | |
parent | c512d6054d119e606e1700000515db7852e85969 (diff) | |
download | go-tangerine-2abeb35d5425d72c2f7fdfe4209f7a94fac52a8e.tar go-tangerine-2abeb35d5425d72c2f7fdfe4209f7a94fac52a8e.tar.gz go-tangerine-2abeb35d5425d72c2f7fdfe4209f7a94fac52a8e.tar.bz2 go-tangerine-2abeb35d5425d72c2f7fdfe4209f7a94fac52a8e.tar.lz go-tangerine-2abeb35d5425d72c2f7fdfe4209f7a94fac52a8e.tar.xz go-tangerine-2abeb35d5425d72c2f7fdfe4209f7a94fac52a8e.tar.zst go-tangerine-2abeb35d5425d72c2f7fdfe4209f7a94fac52a8e.zip |
p2p/testing, swarm: remove unused testing.T in protocol tester (#18500)
Diffstat (limited to 'p2p/testing/protocoltester.go')
-rw-r--r-- | p2p/testing/protocoltester.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/p2p/testing/protocoltester.go b/p2p/testing/protocoltester.go index afc03b009..cbd8ce6fe 100644 --- a/p2p/testing/protocoltester.go +++ b/p2p/testing/protocoltester.go @@ -30,7 +30,6 @@ import ( "io/ioutil" "strings" "sync" - "testing" "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/node" @@ -52,7 +51,7 @@ type ProtocolTester struct { // NewProtocolTester constructs a new ProtocolTester // it takes as argument the pivot node id, the number of dummy peers and the // protocol run function called on a peer connection by the p2p server -func NewProtocolTester(t *testing.T, id enode.ID, n int, run func(*p2p.Peer, p2p.MsgReadWriter) error) *ProtocolTester { +func NewProtocolTester(id enode.ID, n int, run func(*p2p.Peer, p2p.MsgReadWriter) error) *ProtocolTester { services := adapters.Services{ "test": func(ctx *adapters.ServiceContext) (node.Service, error) { return &testNode{run}, nil |