diff --git a/p2p/testing/protocoltester.go b/p2p/testing/protocoltester.go index 1e1752af8a..e798240a56 100644 --- a/p2p/testing/protocoltester.go +++ b/p2p/testing/protocoltester.go @@ -110,6 +110,7 @@ func NewProtocolTester(prvkey *ecdsa.PrivateKey, nodeCount int, run func(*p2p.Pe // Stop stops the p2p server func (t *ProtocolTester) Stop() { t.Server.Stop() + t.network.Shutdown() } // Connect brings up the remote peer node and connects it using the