From acfb67a8908ad4afb9258bcb963df424a62b8264 Mon Sep 17 00:00:00 2001 From: Michael Boeckli Date: Fri, 19 Jul 2024 18:04:29 +0200 Subject: [PATCH] Shutdown peer manager --- peer_manager_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/peer_manager_test.go b/peer_manager_test.go index 6062b22..67b371f 100644 --- a/peer_manager_test.go +++ b/peer_manager_test.go @@ -39,7 +39,7 @@ func TestNewPeerManager(t *testing.T) { err = pm.AddPeer(peer) require.NoError(t, err) assert.Len(t, pm.GetPeers(), 1) - peer.Shutdown() + pm.Shutdown() }) t.Run("1 peer - de dup", func(t *testing.T) { @@ -64,9 +64,7 @@ func TestNewPeerManager(t *testing.T) { assert.Len(t, pm.GetPeers(), 4) - for _, peer := range peers { - peer.Shutdown() - } + pm.Shutdown() }) }