Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(starknet_integration_tests): add delayed sequencers to the integration test #3370

Open
wants to merge 1 commit into
base: spr/main/43adb606
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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();
}
Loading