Skip to content

Commit

Permalink
chore: change sequencer_node_handle type to Vec to support multiple h…
Browse files Browse the repository at this point in the history
…andles

commit-id:1900daf0
  • Loading branch information
nadin-Starkware committed Dec 9, 2024
1 parent 3b4f81c commit bd3ced2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/starknet_integration_tests/src/flow_test_setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub struct FlowTestSetup {
pub rpc_storage_file_handle: TempDir,

// Handle of the sequencer node.
pub sequencer_node_handle: JoinHandle<Result<(), anyhow::Error>>,
pub sequencer_node_handles: Vec<JoinHandle<Result<(), anyhow::Error>>>,

// Channels for consensus proposals, used for asserting the right transactions are proposed.
pub consensus_proposals_channels: BroadcastTopicChannels<StreamMessage<ProposalPart>>,
Expand Down Expand Up @@ -67,7 +67,7 @@ impl FlowTestSetup {

// Build and run the sequencer node.
let sequencer_node_future = run_component_servers(servers);
let sequencer_node_handle = task_executor.spawn_with_handle(sequencer_node_future);
let sequencer_node_handles = vec![task_executor.spawn_with_handle(sequencer_node_future)];

// Wait for server to spin up.
// TODO(Gilad): Replace with a persistent Client with a built-in retry to protect against CI
Expand All @@ -79,7 +79,7 @@ impl FlowTestSetup {
add_tx_http_client,
batcher_storage_file_handle: storage_for_test.batcher_storage_handle,
rpc_storage_file_handle: storage_for_test.rpc_storage_handle,
sequencer_node_handle,
sequencer_node_handles,
consensus_proposals_channels,
}
}
Expand Down

0 comments on commit bd3ced2

Please sign in to comment.