chore: remove network-api test-utils feature (#3622)

This commit is contained in:
Matthias Seitz
2023-07-06 15:09:57 +02:00
committed by GitHub
parent c4f02425eb
commit 73bfb2c9a4
11 changed files with 27 additions and 26 deletions

View File

@ -39,7 +39,7 @@ reth-tracing = { path = "../../tracing" }
reth-rpc-api = { path = "../rpc-api", features = ["client"] }
reth-transaction-pool = { workspace = true, features = ["test-utils"] }
reth-provider = { workspace = true, features = ["test-utils"] }
reth-network-api = { workspace = true, features = ["test-utils"] }
reth-network-api = { workspace = true }
reth-interfaces = { workspace = true, features = ["test-utils"] }
reth-beacon-consensus = { path = "../../consensus/beacon" }
reth-payload-builder = { workspace = true, features = ["test-utils"] }

View File

@ -1,5 +1,5 @@
use reth_beacon_consensus::BeaconConsensusEngineHandle;
use reth_network_api::test_utils::NoopNetwork;
use reth_network_api::noop::NoopNetwork;
use reth_payload_builder::test_utils::spawn_test_payload_service;
use reth_primitives::MAINNET;
use reth_provider::test_utils::{NoopProvider, TestCanonStateSubscriptions};
@ -101,7 +101,7 @@ pub fn test_rpc_builder() -> RpcModuleBuilder<
RpcModuleBuilder::default()
.with_provider(NoopProvider::default())
.with_pool(testing_pool())
.with_network(NoopNetwork)
.with_network(NoopNetwork::default())
.with_executor(TokioTaskExecutor::default())
.with_events(TestCanonStateSubscriptions::default())
}