From f663debe083649633c153e991c97f8339c15ab55 Mon Sep 17 00:00:00 2001 From: bwty Date: Thu, 19 Jan 2023 21:17:10 +0700 Subject: [PATCH] chore: fix rebase Signed-off-by: bwty --- anoncreds/tests/anoncreds_demos.rs | 3 ++- anoncreds/tests/utils/mock.rs | 14 -------------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/anoncreds/tests/anoncreds_demos.rs b/anoncreds/tests/anoncreds_demos.rs index 8ccc2eff..0ff3fcd5 100644 --- a/anoncreds/tests/anoncreds_demos.rs +++ b/anoncreds/tests/anoncreds_demos.rs @@ -255,7 +255,8 @@ fn anoncreds_with_revocation_works_for_single_issuer_single_prover() { .expect("Error creating gvt credential definition"); // This will create a tails file locally in the .tmp dir - create_dir(TF_PATH) + let tf_path = "../.tmp"; + create_dir(tf_path) .or_else(|e| -> Result<(), std::io::Error> { println!( "Tail file path creation error but test can still proceed {}", diff --git a/anoncreds/tests/utils/mock.rs b/anoncreds/tests/utils/mock.rs index e16dafd6..2767b369 100644 --- a/anoncreds/tests/utils/mock.rs +++ b/anoncreds/tests/utils/mock.rs @@ -182,20 +182,6 @@ impl<'a> Mock<'a> { HashMap::from([(time_now, revocation_status_list)]), ); - // TODO create_revocation_registry needs issuance type to update this - let list = bitvec![0; self.max_cred_num as usize ]; - let revocation_list = RevocationStatusList::new( - Some(rev_reg_id), - list, - Some(rev_reg.clone().value), - Some(time_now), - ) - .unwrap(); - - self.ledger - .revcation_list - .insert(rev_reg_id, revocation_list); - self.ledger.rev_reg_defs.insert( RevocationRegistryDefinitionId::new_unchecked(*rev_reg_id), rev_reg_def_pub,