7311: Add testGetPeerButNoPeerMatchesFilter to DefaultPeerSelectorTest

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>
pull/7628/head
Matilda Clerke 2 months ago
parent e2fda73192
commit 608feceff4
  1. 2
      ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/manager/peertask/DefaultPeerSelectorTest.java

@ -58,7 +58,7 @@ public class DefaultPeerSelectorTest {
} }
@Test @Test
public void testGetPeerButNoPeerMatchesFilter() throws NoAvailablePeerException { public void testGetPeerButNoPeerMatchesFilter() {
EthPeer protocol1With5ReputationPeer = EthPeer protocol1With5ReputationPeer =
createTestPeer(Set.of(Capability.create("capability1", 1)), "protocol1", 5); createTestPeer(Set.of(Capability.create("capability1", 1)), "protocol1", 5);
peerSelector.addPeer(protocol1With5ReputationPeer); peerSelector.addPeer(protocol1With5ReputationPeer);

Loading…
Cancel
Save