Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 2 additions & 20 deletions app/src/test/java/org/hyperledger/besu/RunnerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,22 +164,6 @@ public void fullSyncFromGenesisUsingPeerTaskSystem() throws Exception {
syncFromGenesis(SyncMode.FULL, getFastSyncGenesis(), true);
}

@Test
public void fastSyncFromGenesis() throws Exception {
// set merge flag to false, otherwise this test can fail if a merge test runs first
MergeConfiguration.setMergeEnabled(false);

syncFromGenesis(SyncMode.FAST, getFastSyncGenesis(), false);
}

@Test
public void fastSyncFromGenesisUsingPeerTaskSystem() throws Exception {
// set merge flag to false, otherwise this test can fail if a merge test runs first
MergeConfiguration.setMergeEnabled(false);

syncFromGenesis(SyncMode.FAST, getFastSyncGenesis(), true);
}

private void syncFromGenesis(
final SyncMode mode, final GenesisConfig genesisConfig, final boolean isPeerTaskSystemEnabled)
throws Exception {
Expand Down Expand Up @@ -378,10 +362,8 @@ private void syncFromGenesis(
}

private int getNumber(final Response response) throws IOException {
final int currentBlock =
UInt256.fromHexString(new JsonObject(response.body().string()).getString("result"))
.intValue();
return currentBlock;
return UInt256.fromHexString(new JsonObject(response.body().string()).getString("result"))
.intValue();
}

private Request getRequest(final String method, final String baseUrl) {
Expand Down
Loading