storage: stop peer store after tests

This commit is contained in:
Leo Balduf 2017-09-13 03:47:19 +02:00
parent 2a4c82f613
commit b5dda16706

View file

@ -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 {