-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(blockifier_reexecution): move reexecution test to separate f…
…ile (#2304)
- Loading branch information
1 parent
8edd6d7
commit 46ca924
Showing
4 changed files
with
26 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
crates/blockifier_reexecution/src/state_reader/reexecution_test.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
use rstest::rstest; | ||
|
||
use crate::state_reader::utils::reexecute_block_for_testing; | ||
|
||
#[rstest] | ||
#[case::v_0_13_0(600001)] | ||
#[case::v_0_13_1(620978)] | ||
#[case::v_0_13_1_1(649367)] | ||
#[case::v_0_13_2(685878)] | ||
#[case::v_0_13_2_1(700000)] | ||
#[case::invoke_with_replace_class_syscall(780008)] | ||
#[case::invoke_with_deploy_syscall(870136)] | ||
#[case::example_deploy_account_v1(837408)] | ||
#[case::example_deploy_account_v3(837792)] | ||
#[case::example_declare_v1(837461)] | ||
#[case::example_declare_v2(822636)] | ||
#[case::example_declare_v3(825013)] | ||
#[case::example_l1_handler(868429)] | ||
#[ignore = "Requires downloading JSON files prior to running; Long test, run with --release flag."] | ||
fn test_block_reexecution(#[case] block_number: u64) { | ||
reexecute_block_for_testing(block_number); | ||
} |