From 9b5b561d6587b020cf2893cbd84bc24fa3785a45 Mon Sep 17 00:00:00 2001 From: Janos Guljas Date: Fri, 12 Apr 2019 10:24:40 +0200 Subject: [PATCH] p2p/testing: prevent goroutine leak in ProtocolTester --- p2p/testing/protocoltester.go | 1 + 1 file changed, 1 insertion(+) 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