Skip to content

Commit 44b69c4

Browse files
starknet_os_flow_tests: reduce boilerplate with perform_default_validations
1 parent 3d2ed8f commit 44b69c4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

crates/starknet_os_flow_tests/src/test_manager.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ pub(crate) struct OsTestOutput<S: FlowTestState> {
114114
}
115115

116116
impl<S: FlowTestState> OsTestOutput<S> {
117+
pub(crate) fn perform_default_validations(&self) {
118+
self.perform_validations(true, None);
119+
}
120+
117121
pub(crate) fn perform_validations(
118122
&self,
119123
perform_global_validations: bool,

crates/starknet_os_flow_tests/src/tests.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,5 @@ async fn trivial_diff_scenario(
230230
!test_output.decompressed_state_diff.storage_updates.contains_key(&test_contract_address)
231231
);
232232

233-
let perform_global_validations = true;
234-
test_output.perform_validations(perform_global_validations, None);
233+
test_output.perform_default_validations();
235234
}

0 commit comments

Comments
 (0)