Skip to content
This repository has been archived by the owner on Jun 7, 2019. It is now read-only.

Test custom peer selection in integration tests #1131

Closed
ishantiw opened this issue Feb 22, 2019 · 0 comments
Closed

Test custom peer selection in integration tests #1131

ishantiw opened this issue Feb 22, 2019 · 0 comments

Comments

@ishantiw
Copy link
Contributor

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,

new P2P({ blacklistedPeers: [], seedPeers, wsEngine: 'ws', peerSelectionForSendRequest, peerSelectForConnection})
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants