Skip to content

Commit

Permalink
Fix test for Apple M4
Browse files Browse the repository at this point in the history
  • Loading branch information
zilm13 committed Jan 17, 2025
1 parent ad34920 commit b5ef7ae
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ void shouldLoadValidatorKeys() {
when(validatorApiChannel.getValidatorIndices(validators.getPublicKeys()))
.thenReturn(SafeFuture.completedFuture(Map.of(key1, 1, key2, 20, key3, 300)));
provider.lookupValidators();
assertThat(provider.getValidatorIndices()).isCompletedWithValue(IntArrayList.of(1, 20, 300));
final IntCollection actual = provider.getValidatorIndices().getImmediately();
assertThat(actual).containsExactlyInAnyOrderElementsOf(IntArrayList.of(1, 20, 300));
}

@Test
Expand Down Expand Up @@ -99,7 +100,8 @@ void shouldLookupValidatorKeysThatWerePreviouslyUnknown() {
when(validatorApiChannel.getValidatorIndices(Set.of(key1, key3)))
.thenReturn(SafeFuture.completedFuture(Map.of(key1, 1, key3, 300)));
provider.lookupValidators();
assertThat(provider.getValidatorIndices()).isCompletedWithValue(IntArrayList.of(1, 20, 300));
final IntCollection actual = provider.getValidatorIndices().getImmediately();
assertThat(actual).containsExactlyInAnyOrderElementsOf(IntArrayList.of(1, 20, 300));
}

@Test
Expand Down

0 comments on commit b5ef7ae

Please sign in to comment.