Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinI committed Oct 11, 2024
1 parent f502edd commit 39f7317
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions crates/marketplace/src/testing/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::{
Expand Down Expand Up @@ -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()
}
},
);

0 comments on commit 39f7317

Please sign in to comment.