Skip to content

Commit

Permalink
Update test case to show validatorSelector behavior when present and …
Browse files Browse the repository at this point in the history
…missing keys are in one search (#3300)

Signed-off-by: Paul Harris <paul.harris@consensys.net>
  • Loading branch information
rolfyone committed Nov 25, 2020
1 parent 7d52b6a commit 6442aac
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,10 @@ public void filteredValidatorsList_shouldFilterByValidatorPubkey() {
final ChainDataProvider provider =
new ChainDataProvider(recentChainData, combinedChainDataClient);
final String key = internalState.getValidators().get(12).getPubkey().toString();
final String missingKey = data.randomPublicKey().toString();
List<String> pubkeys =
provider.getFilteredValidatorList(internalState, List.of(key), emptySet()).stream()
provider.getFilteredValidatorList(internalState, List.of(key, missingKey), emptySet())
.stream()
.map(v -> v.validator.pubkey.toHexString())
.collect(toList());
assertThat(pubkeys).containsExactly(key);
Expand Down

0 comments on commit 6442aac

Please sign in to comment.