diff --git a/massa-factory-worker/src/tests/tools.rs b/massa-factory-worker/src/tests/tools.rs index 3aaae6f15db..9f44959a0d0 100644 --- a/massa-factory-worker/src/tests/tools.rs +++ b/massa-factory-worker/src/tests/tools.rs @@ -23,7 +23,6 @@ use massa_wallet::test_exports::create_test_wallet; /// This structure store all information and links to creates tests for the factory. /// The factory will ask that to the the pool, consensus and factory and then will send the block to the consensus. /// You can use the method `new` to build all the mocks and make the connections -/// Then you can use the method `get_next_created_block` that will manage the answers from the mock to the factory depending on the parameters you gave. #[allow(dead_code)] pub struct TestFactory { factory_config: FactoryConfig, diff --git a/massa-grpc/Cargo.toml b/massa-grpc/Cargo.toml index 06e0a4ffd24..102b448186f 100644 --- a/massa-grpc/Cargo.toml +++ b/massa-grpc/Cargo.toml @@ -8,7 +8,7 @@ homepage = "https://massa.net" documentation = "https://docs.massa.net/" [features] -testing = ["num"] +testing = [] [dependencies] massa-proto-rs = { workspace = true, "features" = ["tonic"] } @@ -29,7 +29,6 @@ parking_lot = { workspace = true, "features" = ["deadlock_detection"] } h2 = { workspace = true } itertools = { workspace = true } # test -num = { workspace = true, optional = true } massa_consensus_exports = { workspace = true } massa_hash = { workspace = true } @@ -52,3 +51,4 @@ massa_consensus_exports = { workspace = true, "features" = ["testing"] } massa_protocol_exports = { workspace = true, "features" = ["testing"] } massa_final_state = { workspace = true } tokio = { workspace = true, "features" = ["test-util", "time"] } +num = {workspace = true} diff --git a/massa-grpc/src/tests/mock.rs b/massa-grpc/src/tests/mock.rs index da3f13d348c..380df8839cf 100644 --- a/massa-grpc/src/tests/mock.rs +++ b/massa-grpc/src/tests/mock.rs @@ -31,7 +31,6 @@ use std::path::PathBuf; /// * `addr` - the address to bind to /// # Returns /// * `MassaPublicGrpc` - the grpc public service -#[allow(dead_code)] pub(crate) fn grpc_public_service(addr: &SocketAddr) -> MassaPublicGrpc { let consensus_ctrl = Box::new(MockConsensusController::new()); let shared_storage: massa_storage::Storage = massa_storage::Storage::create_root(); diff --git a/massa-grpc/src/tests/mod.rs b/massa-grpc/src/tests/mod.rs index 11fbcc3aa84..86ad1d46e02 100644 --- a/massa-grpc/src/tests/mod.rs +++ b/massa-grpc/src/tests/mod.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 MASSA LABS /// mock for testing -#[cfg(any(test, feature = "testing"))] +#[cfg(test)] pub mod mock; #[cfg(test)]