Skip to content

Commit

Permalink
Fix unit tests, remove DeterministicEthScheduler for trace tests as i…
Browse files Browse the repository at this point in the history
…t not performant enough

Signed-off-by: Ameziane H. <[email protected]>
  • Loading branch information
ahamlat committed Jan 9, 2025
1 parent bc433e5 commit 447907b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,6 @@ protected Object resultByBlockNumber(
}
return Optional.of(tracesList);
}))
.orElse(Collections.emptyList());
.orElse(null);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import org.hyperledger.besu.ethereum.core.Transaction;
import org.hyperledger.besu.ethereum.eth.EthProtocol;
import org.hyperledger.besu.ethereum.eth.manager.EthPeers;
import org.hyperledger.besu.ethereum.eth.manager.EthScheduler;
import org.hyperledger.besu.ethereum.eth.transactions.TransactionPool;
import org.hyperledger.besu.ethereum.mainnet.ValidationResult;
import org.hyperledger.besu.ethereum.p2p.network.P2PNetwork;
Expand All @@ -53,7 +54,6 @@
import org.hyperledger.besu.nat.NatService;
import org.hyperledger.besu.plugin.services.storage.DataStorageFormat;
import org.hyperledger.besu.testutil.BlockTestUtil.ChainResources;
import org.hyperledger.besu.testutil.DeterministicEthScheduler;

import java.math.BigInteger;
import java.net.URL;
Expand Down Expand Up @@ -216,7 +216,7 @@ protected Map<String, JsonRpcMethod> getRpcMethods(
mock(ApiConfiguration.class),
Optional.empty(),
transactionSimulator,
new DeterministicEthScheduler());
new EthScheduler(1, 1, 1, new NoOpMetricsSystem()));
}

protected void startService() throws Exception {
Expand Down

0 comments on commit 447907b

Please sign in to comment.