diff --git a/crates/marketplace/src/testing/integration.rs b/crates/marketplace/src/testing/integration.rs index a82cc578..a9e5a75b 100644 --- a/crates/marketplace/src/testing/integration.rs +++ b/crates/marketplace/src/testing/integration.rs @@ -8,6 +8,7 @@ use hotshot_example_types::node_types::{MarketplaceTestVersions, TestVersions}; use hotshot_macros::cross_tests; use hotshot_testing::{ block_builder::{BuilderTask, TestBuilderImplementation}, + overall_safety_task::OverallSafetyPropertiesDescription, test_builder::BuilderChange, }; use hotshot_types::{ @@ -196,18 +197,20 @@ cross_tests!( Versions: [MarketplaceTestVersions], Ignore: true, Metadata: { - let mut metadata = TestDescription::default(); - metadata.validate_transactions = hotshot_testing::test_builder::nonempty_block_threshold((90,100)); - metadata.txn_description = hotshot_testing::txn_task::TxnTaskDescription::RoundRobinTimeBased(Duration::from_millis(100)); - - metadata.completion_task_description = - CompletionTaskDescription::TimeBasedCompletionTaskBuilder( - TimeBasedCompletionTaskDescription { - duration: Duration::from_secs(120), + TestDescription { + validate_transactions : hotshot_testing::test_builder::nonempty_block_threshold((90,100)), + txn_description : hotshot_testing::txn_task::TxnTaskDescription::RoundRobinTimeBased(Duration::from_millis(100)), + completion_task_description : CompletionTaskDescription::TimeBasedCompletionTaskBuilder( + TimeBasedCompletionTaskDescription { + duration: Duration::from_secs(120), + }, + ), + overall_safety_properties: OverallSafetyPropertiesDescription { + num_successful_views: 45, + num_failed_views: 5, + ..Default::default() }, - ); - metadata.overall_safety_properties.num_successful_views = 45; - metadata.overall_safety_properties.num_failed_views = 5; - metadata + ..Default::default() + } }, );