Skip to content

Commit ff077ba

Browse files
committed
ci: activate CardanoDatabase signed entity type in the e2e test
1 parent cc6dd8e commit ff077ba

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

mithril-common/src/digesters/immutable_digester.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ use thiserror::Error;
1818
/// use async_trait::async_trait;
1919
/// use mithril_common::digesters::{ImmutableDigester, ImmutableDigesterError};
2020
/// use mithril_common::entities::CardanoDbBeacon;
21+
/// use mithril_common::crypto_helper::{MKTree, MKTreeStoreInMemory};
22+
/// use anyhow::anyhow;
2123
/// use mockall::mock;
2224
/// use std::path::Path;
2325
///
@@ -31,6 +33,12 @@ use thiserror::Error;
3133
/// dirpath: &Path,
3234
/// beacon: &CardanoDbBeacon,
3335
/// ) -> Result<String, ImmutableDigesterError>;
36+
///
37+
/// async fn compute_merkle_tree(
38+
/// &self,
39+
/// dirpath: &Path,
40+
/// beacon: &CardanoDbBeacon,
41+
/// ) -> Result<MKTree<MKTreeStoreInMemory>, ImmutableDigesterError>;
3442
/// }
3543
/// }
3644
///
@@ -44,6 +52,9 @@ use thiserror::Error;
4452
/// db_dir: PathBuff::new(),
4553
/// })
4654
/// });
55+
/// mock.expect_compute_merkle_tree().return_once(|_, _| {
56+
/// Err(ImmutableDigesterError::MerkleTreeComputationError(anyhow!("Error")))
57+
/// });
4758
/// }
4859
/// }
4960
/// ```

mithril-test-lab/mithril-end-to-end/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ pub struct Args {
9292
#[clap(
9393
long,
9494
value_delimiter = ',',
95-
default_value = "CardanoTransactions,CardanoStakeDistribution"
95+
default_value = "CardanoTransactions,CardanoStakeDistribution,CardanoDatabase"
9696
)]
9797
signed_entity_types: Vec<String>,
9898

0 commit comments

Comments
 (0)