Skip to content

Commit a5ffcf3

Browse files
committed
ci: activate CardanoDatabase signed entity type in the e2e test
1 parent 9390fe6 commit a5ffcf3

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
@@ -19,6 +19,8 @@ use thiserror::Error;
1919
/// use async_trait::async_trait;
2020
/// use mithril_common::digesters::{ImmutableDigester, ImmutableDigesterError};
2121
/// use mithril_common::entities::CardanoDbBeacon;
22+
/// use mithril_common::crypto_helper::{MKTree, MKTreeStoreInMemory};
23+
/// use anyhow::anyhow;
2224
/// use mockall::mock;
2325
/// use std::path::Path;
2426
///
@@ -32,6 +34,12 @@ use thiserror::Error;
3234
/// dirpath: &Path,
3335
/// beacon: &CardanoDbBeacon,
3436
/// ) -> Result<String, ImmutableDigesterError>;
37+
///
38+
/// async fn compute_merkle_tree(
39+
/// &self,
40+
/// dirpath: &Path,
41+
/// beacon: &CardanoDbBeacon,
42+
/// ) -> Result<MKTree<MKTreeStoreInMemory>, ImmutableDigesterError>;
3543
/// }
3644
/// }
3745
///
@@ -45,6 +53,9 @@ use thiserror::Error;
4553
/// db_dir: PathBuff::new(),
4654
/// })
4755
/// });
56+
/// mock.expect_compute_merkle_tree().return_once(|_, _| {
57+
/// Err(ImmutableDigesterError::MerkleTreeComputationError(anyhow!("Error")))
58+
/// });
4859
/// }
4960
/// }
5061
/// ```

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

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

0 commit comments

Comments
 (0)