File tree 1 file changed +1
-5
lines changed
validator/remote/src/integration-test/java/tech/pegasys/teku/validator/remote/typedef
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change 26
26
import static tech .pegasys .teku .infrastructure .http .HttpStatusCodes .SC_NO_CONTENT ;
27
27
import static tech .pegasys .teku .infrastructure .http .HttpStatusCodes .SC_OK ;
28
28
import static tech .pegasys .teku .infrastructure .json .JsonUtil .serialize ;
29
- import static tech .pegasys .teku .infrastructure .json .types .CoreTypes .INTEGER_TYPE ;
30
29
import static tech .pegasys .teku .spec .config .SpecConfig .FAR_FUTURE_EPOCH ;
31
30
32
31
import com .fasterxml .jackson .core .JsonProcessingException ;
45
44
import tech .pegasys .teku .ethereum .json .types .beacon .StateValidatorData ;
46
45
import tech .pegasys .teku .ethereum .json .types .validator .AttesterDuties ;
47
46
import tech .pegasys .teku .ethereum .json .types .validator .AttesterDuty ;
48
- import tech .pegasys .teku .infrastructure .json .types .DeserializableTypeDefinition ;
49
47
import tech .pegasys .teku .infrastructure .ssz .SszDataAssert ;
50
48
import tech .pegasys .teku .infrastructure .ssz .SszList ;
51
49
import tech .pegasys .teku .infrastructure .unsigned .UInt64 ;
@@ -437,9 +435,7 @@ public void postAttesterDuties_WhenSuccess_ReturnsResponse()
437
435
assertThat (recordedRequest .getMethod ()).isEqualTo ("POST" );
438
436
assertThat (recordedRequest .getHeader ("Content-Type" )).isEqualTo (JSON_CONTENT_TYPE );
439
437
assertThat (recordedRequest .getBody ().readByteArray ())
440
- .isEqualTo (
441
- serialize (validatorIndices , DeserializableTypeDefinition .listOf (INTEGER_TYPE , 1 ))
442
- .getBytes (UTF_8 ));
438
+ .isEqualTo ("[\" 1\" ,\" 2\" ]" .getBytes (UTF_8 ));
443
439
444
440
assertThat (result ).isPresent ();
445
441
assertThat (result .get ()).isEqualTo (response );
You can’t perform that action at this time.
0 commit comments