File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
crates/blockifier/src/state Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -223,6 +223,21 @@ fn not_declared_scenario() -> GetCompiledClassTestScenario {
223223 }
224224}
225225
226+ #[ cfg( feature = "cairo_native" ) ]
227+ macro_rules! wait_on_native_compilation_values {
228+ ( ) => {
229+ false ,
230+ true
231+ } ;
232+ }
233+
234+ #[ cfg( not( feature = "cairo_native" ) ) ]
235+ macro_rules! wait_on_native_compilation_values {
236+ ( ) => {
237+ false
238+ } ;
239+ }
240+
226241#[ rstest]
227242#[ case:: cairo_0_declared_and_cached( cairo_0_declared_scenario( ) , cairo_0_cached_scenario( ) ) ]
228243#[ case:: cairo_1_declared_and_cached( cairo_1_declared_scenario( ) , cairo_1_cached_scenario( ) ) ]
@@ -235,10 +250,11 @@ fn not_declared_scenario() -> GetCompiledClassTestScenario {
235250fn test_get_compiled_class_caching_scenarios (
236251 #[ case] first_scenario : GetCompiledClassTestScenario ,
237252 #[ case] second_scenario : GetCompiledClassTestScenario ,
253+ #[ values( wait_on_native_compilation_values!( ) ) ] wait_on_native_compilation : bool ,
238254) {
239255 let contract_class_manager = ContractClassManager :: start ( ContractClassManagerConfig {
240256 cairo_native_run_config : CairoNativeRunConfig {
241- wait_on_native_compilation : false ,
257+ wait_on_native_compilation,
242258 ..Default :: default ( )
243259 } ,
244260 ..Default :: default ( )
You can’t perform that action at this time.
0 commit comments