Add Integration tests should contain the use of custom peer selection algorithm. In this way, we can be sure about the way we pass custom peer selection to the P2P constructor and its working.
It should cover tests for both,
peerSelectForSendRequest
peerSelectForConnection
Example,
new P2P({ blacklistedPeers: [], seedPeers, wsEngine: 'ws', peerSelectionForSendRequest, peerSelectForConnection})
Description
Add Integration tests should contain the use of custom peer selection algorithm. In this way, we can be sure about the way we pass custom peer selection to the P2P constructor and its working.
It should cover tests for both,
peerSelectForSendRequest
peerSelectForConnection
Example,