Skip to content

Commit

Permalink
chore(starknet_infra_utils): move fn from integration test
Browse files Browse the repository at this point in the history
commit-id:8c7534bd
  • Loading branch information
Itay-Tsabary-Starkware committed Jan 14, 2025
1 parent 1308004 commit 1b914ec
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions crates/starknet_infra_utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ repository.workspace = true
license-file.workspace = true
description = "Infrastructure utility."

[features]
testing = []

[lints]
workspace = true

Expand Down
2 changes: 2 additions & 0 deletions crates/starknet_infra_utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ pub mod metrics;
pub mod path;
pub mod run_until;
pub mod tasks;
#[cfg(any(feature = "testing", test))]
pub mod test_identifiers;
pub mod tracing;
pub mod type_name;
2 changes: 1 addition & 1 deletion crates/starknet_integration_tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ starknet_consensus_manager.workspace = true
starknet_gateway = { workspace = true, features = ["testing"] }
starknet_gateway_types.workspace = true
starknet_http_server = { workspace = true, features = ["testing"] }
starknet_infra_utils.workspace = true
starknet_infra_utils = { workspace = true, features = ["testing"] }
starknet_mempool_p2p.workspace = true
starknet_monitoring_endpoint = { workspace = true, features = ["testing"] }
starknet_sequencer_infra = { workspace = true, features = ["testing"] }
Expand Down
1 change: 0 additions & 1 deletion crates/starknet_integration_tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ pub mod flow_test_setup;
pub mod integration_test_setup;
pub mod sequencer_manager;
pub mod state_reader;
pub mod test_identifiers;
pub mod utils;
2 changes: 1 addition & 1 deletion crates/starknet_integration_tests/src/sequencer_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use starknet_api::rpc_transaction::RpcTransaction;
use starknet_api::state::StateNumber;
use starknet_api::transaction::TransactionHash;
use starknet_infra_utils::run_until::run_until;
use starknet_infra_utils::test_identifiers::TestIdentifier;
use starknet_infra_utils::tracing::{CustomLogger, TraceLevel};
use starknet_sequencer_infra::test_utils::{AvailablePorts, MAX_NUMBER_OF_INSTANCES_PER_TEST};
use starknet_sequencer_node::config::component_config::ComponentConfig;
Expand All @@ -28,7 +29,6 @@ use tokio::task::JoinHandle;
use tracing::info;

use crate::integration_test_setup::{SequencerExecutionId, SequencerSetup};
use crate::test_identifiers::TestIdentifier;
use crate::utils::{
create_chain_info,
create_consensus_manager_configs_from_network_configs,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ use rstest::{fixture, rstest};
use starknet_api::block::{BlockHash, BlockNumber};
use starknet_api::rpc_transaction::RpcTransaction;
use starknet_api::transaction::TransactionHash;
use starknet_infra_utils::test_identifiers::TestIdentifier;
use starknet_integration_tests::flow_test_setup::{FlowSequencerSetup, FlowTestSetup};
use starknet_integration_tests::test_identifiers::TestIdentifier;
use starknet_integration_tests::utils::{
create_funding_txs,
create_integration_test_tx_generator,
Expand Down

0 comments on commit 1b914ec

Please sign in to comment.