Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Jun 2, 2023
1 parent 4cef5c8 commit fd69939
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import okhttp3.mockwebserver.MockResponse;
import okhttp3.mockwebserver.MockWebServer;
import okhttp3.mockwebserver.RecordedRequest;
import org.apache.tuweni.bytes.Bytes;
import org.apache.tuweni.bytes.Bytes32;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
Expand Down Expand Up @@ -239,13 +240,15 @@ public void newPayloadV3_shouldBuildRequestAndResponseSuccessfully() {

final Map<String, Object> executionPayloadV3Parameter =
(Map<String, Object>) ((List<Object>) requestData.get("params")).get(0);
// 16 fields in ExecutionPayloadV3
assertThat(executionPayloadV3Parameter).hasSize(16);
// 17 fields in ExecutionPayloadV3
assertThat(executionPayloadV3Parameter).hasSize(17);
// sanity check
assertThat(executionPayloadV3Parameter.get("parentHash"))
.isEqualTo(executionPayloadV3.parentHash.toHexString());
assertThat(executionPayloadV3Parameter.get("excessDataGas"))
.isEqualTo(executionPayloadV3.excessDataGas.toHexString());
.isEqualTo(
Bytes.ofUnsignedLong(executionPayloadV3.excessDataGas.longValue())
.toQuantityHexString());
assertThat(((List<Object>) requestData.get("params")).get(1))
.asInstanceOf(LIST)
.containsExactlyElementsOf(
Expand Down

0 comments on commit fd69939

Please sign in to comment.