p2p/protocols, swarm/network: fix resource leak with p2p teardown

This commit is contained in:
Elad
2019-04-26 16:29:28 +09:00
committed by Anton Evangelatov
parent c1213bd00c
commit a1cd7e6e92
4 changed files with 28 additions and 19 deletions

View File

@ -269,6 +269,7 @@ func TestProtocolHook(t *testing.T) {
panic(err)
}
tester := p2ptest.NewProtocolTester(prvkey, 2, runFunc)
defer tester.Stop()
err = tester.TestExchanges(p2ptest.Exchange{
Expects: []p2ptest.Expect{
{