p2p/protocols, swarm/network: fix resource leak with p2p teardown
This commit is contained in:
@ -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{
|
||||
{
|
||||
|
Reference in New Issue
Block a user