Skip to content

Commit 065b5f6

Browse files
committed
Use string json
1 parent d4e0682 commit 065b5f6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

+1-5
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import static tech.pegasys.teku.infrastructure.http.HttpStatusCodes.SC_NO_CONTENT;
2727
import static tech.pegasys.teku.infrastructure.http.HttpStatusCodes.SC_OK;
2828
import static tech.pegasys.teku.infrastructure.json.JsonUtil.serialize;
29-
import static tech.pegasys.teku.infrastructure.json.types.CoreTypes.INTEGER_TYPE;
3029
import static tech.pegasys.teku.infrastructure.unsigned.UInt64.ONE;
3130
import static tech.pegasys.teku.spec.config.SpecConfig.FAR_FUTURE_EPOCH;
3231

@@ -47,7 +46,6 @@
4746
import tech.pegasys.teku.ethereum.json.types.beacon.StateValidatorData;
4847
import tech.pegasys.teku.ethereum.json.types.validator.SyncCommitteeDuties;
4948
import tech.pegasys.teku.ethereum.json.types.validator.SyncCommitteeDuty;
50-
import tech.pegasys.teku.infrastructure.json.types.DeserializableTypeDefinition;
5149
import tech.pegasys.teku.infrastructure.ssz.SszDataAssert;
5250
import tech.pegasys.teku.infrastructure.ssz.SszList;
5351
import tech.pegasys.teku.infrastructure.unsigned.UInt64;
@@ -443,9 +441,7 @@ public void postSyncDuties_WhenSuccess_ReturnsResponse()
443441
assertThat(recordedRequest.getMethod()).isEqualTo("POST");
444442
assertThat(recordedRequest.getHeader("Content-Type")).isEqualTo(JSON_CONTENT_TYPE);
445443
assertThat(recordedRequest.getBody().readByteArray())
446-
.isEqualTo(
447-
serialize(validatorIndices, DeserializableTypeDefinition.listOf(INTEGER_TYPE, 1))
448-
.getBytes(UTF_8));
444+
.isEqualTo("[\"1\",\"2\"]".getBytes(UTF_8));
449445

450446
assertThat(result).isPresent();
451447
assertThat(result.get()).isEqualTo(response);

0 commit comments

Comments
 (0)