Skip to content

Commit 0f71e38

Browse files
committed
Clean up validator indices set
1 parent ab450fc commit 0f71e38

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Diff for: validator/remote/src/integration-test/java/tech/pegasys/teku/validator/remote/typedef/OkHttpValidatorTypeDefClientTest.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
import com.fasterxml.jackson.core.JsonProcessingException;
3333
import com.fasterxml.jackson.databind.ObjectMapper;
34-
import it.unimi.dsi.fastutil.ints.IntSet;
34+
import it.unimi.dsi.fastutil.ints.IntList;
3535
import java.util.List;
3636
import java.util.Optional;
3737
import okhttp3.mockwebserver.MockResponse;
@@ -428,10 +428,9 @@ public void postAttesterDuties_WhenSuccess_ReturnsResponse()
428428
mockWebServer.enqueue(new MockResponse().setResponseCode(SC_OK).setBody(body));
429429

430430
final UInt64 epoch = UInt64.ONE;
431-
final List<Integer> validatorIndices = List.of(1, 2);
432-
final IntSet validatorSet = IntSet.of(validatorIndices.stream().mapToInt(i -> i).toArray());
431+
final IntList validatorIndices = IntList.of(1, 2);
433432
Optional<AttesterDuties> result =
434-
okHttpValidatorTypeDefClient.postAttesterDuties(epoch, validatorSet);
433+
okHttpValidatorTypeDefClient.postAttesterDuties(epoch, validatorIndices);
435434

436435
final RecordedRequest recordedRequest = mockWebServer.takeRequest();
437436
assertThat(recordedRequest.getPath()).isEqualTo("/eth/v1/validator/duties/attester/" + epoch);

0 commit comments

Comments
 (0)