Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Karim Taam <[email protected]>
  • Loading branch information
matkt committed Oct 30, 2024
1 parent 0866781 commit 32c6fbc
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public static BlockHeader createBlockHeader(
null,
null,
null,
null,
blockHeaderFunctions);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ public void miningParametersBlockPeriodSecondsIsUpdatedOnTransition() {
null,
null,
null,
null,
getBlockHeaderFunctions());
final Block block1 = new Block(header1, BlockBody.empty());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ public void miningParametersBlockPeriodSecondsIsUpdatedOnTransition() {
null,
null,
null,
null,
new CliqueBlockHeaderFunctions());
final Block block1 = new Block(header1, BlockBody.empty());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ private void setSyncTarget() {
mock(EthPeer.class),
new org.hyperledger.besu.ethereum.core.BlockHeader(
null, null, null, null, null, null, null, null, 1, 1, 1, 1, null, null, null, 1, null,
null, null, null, null, null, null));
null, null, null, null, null, null, null));
}

private void clearSyncTarget() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ private Block createFakeBlock(
null,
null,
null,
null,
null),
new BlockBody(
IntStream.range(0, txsNum)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ private Block createFakeBlock(
null,
null,
null,
null,
null),
new BlockBody(
IntStream.range(0, txsNum)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ private BlockHeader createBlockHeader(final Hash blockHash, final long blockNumb
null,
null,
null,
null,
new BlockHeaderFunctions() {
@Override
public Hash hash(final BlockHeader header) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ public void setup() {
null,
null,
null,
null,
new MainnetBlockHeaderFunctions());
testHash = fakeHeader.getHash();
final BlockBody fakeBody = new BlockBody(Collections.emptyList(), Collections.emptyList());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ public void setup() throws IOException {
null,
null,
null,
null,
new MainnetBlockHeaderFunctions());
testHash = fakeHeader.getHash();
when(blockchain.getBlockHeader(anyLong())).thenReturn(Optional.of(fakeHeader));
Expand Down Expand Up @@ -285,6 +286,7 @@ private BlockHeader createBlock(final long number, final Optional<String> messag
null,
null,
null,
null,
new MainnetBlockHeaderFunctions());
testHash = fakeHeader.getHash();
when(blockchain.getBlockHeader(number)).thenReturn(Optional.of(fakeHeader));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ class LogRollingTests {
null,
null,
null,
null,
new MainnetBlockHeaderFunctions());
private static final BlockHeader headerTwo =
new BlockHeader(
Expand All @@ -125,6 +126,7 @@ class LogRollingTests {
null,
null,
null,
null,
new MainnetBlockHeaderFunctions());

@BeforeEach
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ class LogRollingTests {
null,
null,
null,
null,
new MainnetBlockHeaderFunctions());
private static final BlockHeader headerTwo =
new BlockHeader(
Expand All @@ -128,6 +129,7 @@ class LogRollingTests {
null,
null,
null,
null,
new MainnetBlockHeaderFunctions());
private static final BlockHeader headerThree =
new BlockHeader(
Expand All @@ -153,6 +155,7 @@ class LogRollingTests {
null,
null,
null,
null,
new MainnetBlockHeaderFunctions());

private static final BlockHeader headerFour =
Expand All @@ -179,6 +182,7 @@ class LogRollingTests {
null,
null,
null,
null,
new MainnetBlockHeaderFunctions());

@BeforeEach
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ public TestBlockHeader(
null,
null,
null,
null,
new MainnetBlockHeaderFunctions());
}
}
Expand Down

0 comments on commit 32c6fbc

Please sign in to comment.