swarm/pss: Remove pss service leak in test (#18992)

This commit is contained in:
lash
2019-02-05 14:35:20 +01:00
committed by Anton Evangelatov
parent 1c3aa8d9b1
commit 7c60d0a6a2
2 changed files with 11 additions and 0 deletions

View File

@ -54,6 +54,7 @@ func TestForwardBasic(t *testing.T) {
kad := network.NewKademlia(base[:], network.NewKadParams())
ps := createPss(t, kad)
defer ps.Stop()
addPeers(kad, peerAddresses)
const firstNearest = depth * 2 // shallowest peer in the nearest neighbours' bin