Skip to content

Commit

Permalink
Shutdown peer manager
Browse files Browse the repository at this point in the history
  • Loading branch information
boecklim committed Jul 19, 2024
1 parent 5131e14 commit acfb67a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions peer_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -64,9 +64,7 @@ func TestNewPeerManager(t *testing.T) {

assert.Len(t, pm.GetPeers(), 4)

for _, peer := range peers {
peer.Shutdown()
}
pm.Shutdown()
})
}

Expand Down

0 comments on commit acfb67a

Please sign in to comment.