Skip to content

Commit e5166ab

Browse files
committed
refactor(common): remove test case with CardanoTransactions and CardanoBlocksTransactions since beacon are different now
1 parent e759385 commit e5166ab

1 file changed

Lines changed: 18 additions & 29 deletions

File tree

mithril-common/src/entities/signed_entity_type.rs

Lines changed: 18 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -463,35 +463,24 @@ mod tests {
463463
);
464464
}
465465

466-
#[test]
467-
fn signed_entity_with_shared_beacons_computes_different_hashes() {
468-
assert_ne!(
469-
hash(SignedEntityType::CardanoTransactions(
470-
Epoch(3),
471-
BlockNumber(77)
472-
)),
473-
hash(SignedEntityType::CardanoBlocksTransactions(
474-
Epoch(3),
475-
BlockNumber(77),
476-
BlockNumberOffset(5),
477-
))
478-
);
479-
480-
// TODO: uncomment those tests cases when feeding database index is generalized to all types
481-
// assert_ne!(
482-
// hash(SignedEntityType::MithrilStakeDistribution(Epoch(15))),
483-
// hash(SignedEntityType::CardanoStakeDistribution(Epoch(15)))
484-
// );
485-
//
486-
// assert_ne!(
487-
// hash(SignedEntityType::CardanoImmutableFilesFull(
488-
// CardanoDbBeacon::new(98, 987)
489-
// )),
490-
// hash(SignedEntityType::CardanoDatabase(CardanoDbBeacon::new(
491-
// 98, 987
492-
// )))
493-
// );
494-
}
466+
// #[test]
467+
// fn signed_entity_with_shared_beacons_computes_different_hashes() {
468+
469+
// //TODO: uncomment those tests cases when feeding database index is generalized to all types
470+
// assert_ne!(
471+
// hash(SignedEntityType::MithrilStakeDistribution(Epoch(15))),
472+
// hash(SignedEntityType::CardanoStakeDistribution(Epoch(15)))
473+
// );
474+
475+
// assert_ne!(
476+
// hash(SignedEntityType::CardanoImmutableFilesFull(
477+
// CardanoDbBeacon::new(98, 987)
478+
// )),
479+
// hash(SignedEntityType::CardanoDatabase(CardanoDbBeacon::new(
480+
// 98, 987
481+
// )))
482+
// );
483+
// }
495484

496485
#[test]
497486
fn get_open_message_timeout() {

0 commit comments

Comments
 (0)