Skip to content

Commit

Permalink
test(starknet_integration_tests): add delayed sequencers to the integ…
Browse files Browse the repository at this point in the history
…ration test

commit-id:3f61aca7
  • Loading branch information
nadin-Starkware committed Jan 19, 2025
1 parent 2ecaf6c commit edb3a91
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion crates/starknet_integration_tests/src/end_to_end_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,30 @@ pub async fn end_to_end_integration(tx_generator: &mut MultiAccountTransactionGe
get_node_executable_path();

// Get the sequencer configurations.
let (regular_sequencer_setups, _delayed_sequencer_setups) =
let (regular_sequencer_setups, delayed_sequencer_setups) =
get_sequencer_setup_configs(tx_generator).await;

// Run the sequencers.
// TODO(Nadin, Tsabary): Refactor to separate the construction of SequencerManager from its
// invocation. Consider using the builder pattern.
info!("Running regular sequencers.");
let regular_sequencer_manager = SequencerSetupManager::run(regular_sequencer_setups).await;

// Run the integration test simulator and verify the results.
regular_sequencer_manager
.test_and_verify(tx_generator, N_TXS, SENDER_ACCOUNT, sender_address, EXPECTED_BLOCK_NUMBER)
.await;

// Run the delayed sequencer.
info!("Running delayed sequencers.");
let delayed_sequencer_manager = SequencerSetupManager::run(delayed_sequencer_setups).await;

// Run the integration test simulator for delayed sequencer and verify the results.
delayed_sequencer_manager
.test_and_verify(tx_generator, N_TXS, SENDER_ACCOUNT, sender_address, EXPECTED_BLOCK_NUMBER)
.await;

info!("Shutting down nodes.");
regular_sequencer_manager.shutdown_nodes();
delayed_sequencer_manager.shutdown_nodes();
}

0 comments on commit edb3a91

Please sign in to comment.