p2p/testing: prevent goroutine leak in ProtocolTester

This commit is contained in:
Janos Guljas 2019-04-12 10:24:40 +02:00
parent 5cd0059892
commit 9b5b561d65

View file

@ -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