mirror of
https://github.com/sot-tech/mochi.git
synced 2026-04-29 17:10:00 -07:00
Merge pull request #356 from mrd0ll4r/stop-tests
storage: stop peer store after tests
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user