Skip to content

Commit

Permalink
ci: activate CardanoDatabase signed entity type in the e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
dlachaume committed Nov 28, 2024
1 parent d3ffdc2 commit 24cb386
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions mithril-common/src/digesters/immutable_digester.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ use thiserror::Error;
/// use async_trait::async_trait;
/// use mithril_common::digesters::{ImmutableDigester, ImmutableDigesterError};
/// use mithril_common::entities::CardanoDbBeacon;
/// use mithril_common::crypto_helper::{MKTree, MKTreeStoreInMemory};
/// use anyhow::anyhow;
/// use mockall::mock;
/// use std::path::Path;
///
Expand All @@ -31,6 +33,12 @@ use thiserror::Error;
/// dirpath: &Path,
/// beacon: &CardanoDbBeacon,
/// ) -> Result<String, ImmutableDigesterError>;
///
/// async fn compute_merkle_tree(
/// &self,
/// dirpath: &Path,
/// beacon: &CardanoDbBeacon,
/// ) -> Result<MKTree<MKTreeStoreInMemory>, ImmutableDigesterError>;
/// }
/// }
///
Expand All @@ -44,6 +52,9 @@ use thiserror::Error;
/// db_dir: PathBuff::new(),
/// })
/// });
/// mock.expect_compute_merkle_tree().return_once(|_, _| {
/// Err(ImmutableDigesterError::MerkleTreeComputationError(anyhow!("Error")))
/// });
/// }
/// }
/// ```
Expand Down
2 changes: 1 addition & 1 deletion mithril-test-lab/mithril-end-to-end/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ pub struct Args {
#[clap(
long,
value_delimiter = ',',
default_value = "CardanoTransactions,CardanoStakeDistribution"
default_value = "CardanoTransactions,CardanoStakeDistribution,CardanoDatabase"
)]
signed_entity_types: Vec<String>,

Expand Down

0 comments on commit 24cb386

Please sign in to comment.