LiskArchive / lisk-elements

⚙️ Library for sending Lisk transactions from the client or server
https://lisk.io/
GNU General Public License v3.0
250 stars 64 forks source link

Test custom peer selection in integration tests #1131

Closed ishantiw closed 5 years ago

ishantiw commented 5 years ago

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,

Example,

new P2P({ blacklistedPeers: [], seedPeers, wsEngine: 'ws', peerSelectionForSendRequest, peerSelectForConnection})