Merge pull request #356 from mrd0ll4r/stop-tests
storage: stop peer store after tests
This commit is contained in:
commit
b9773473e4
1 changed files with 2 additions and 0 deletions
|
@ -146,6 +146,8 @@ func TestPeerStore(t *testing.T, p PeerStore) {
|
|||
require.Equal(t, ErrResourceDoesNotExist, err)
|
||||
}
|
||||
|
||||
e := p.Stop()
|
||||
require.Nil(t, <-e)
|
||||
}
|
||||
|
||||
func containsPeer(peers []bittorrent.Peer, p bittorrent.Peer) bool {
|
||||
|
|
Loading…
Add table
Reference in a new issue