diff --git a/Cargo.lock b/Cargo.lock index c7e011c047..eb4176159a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2914,6 +2914,7 @@ dependencies = [ "serde", "serde_json", "sqlx", + "test_utils", "thiserror", "tokio", "tower-http", diff --git a/agents/rust/mediator/Cargo.toml b/agents/rust/mediator/Cargo.toml index ddaa147abe..ce6adda6ad 100644 --- a/agents/rust/mediator/Cargo.toml +++ b/agents/rust/mediator/Cargo.toml @@ -35,6 +35,7 @@ tower-http = { version = "0.4.4", features = ["catch-panic"] } url = "2.4.1" uuid = "1.4.1" mediation = { path = "./mediation" } +test_utils = { path = "../../../tools/test_utils" } [dev-dependencies] -reqwest = { version = "0.11.20", features = ["blocking"] } +reqwest = { version = "0.11.20", features = ["blocking"] } \ No newline at end of file diff --git a/agents/rust/mediator/src/aries_agent/client.rs b/agents/rust/mediator/src/aries_agent/client.rs index 8f0d2e7743..e5ab35ece6 100644 --- a/agents/rust/mediator/src/aries_agent/client.rs +++ b/agents/rust/mediator/src/aries_agent/client.rs @@ -10,7 +10,7 @@ use aries_vcx::{ }, mediated_connection::pairwise_info::PairwiseInfo, }, - utils::{encryption_envelope::EncryptionEnvelope, mockdata::profile::mock_ledger::MockLedger}, + utils::encryption_envelope::EncryptionEnvelope, }; use aries_vcx_core::wallet::base_wallet::BaseWallet; use mediation::storage::MediatorPersistence; @@ -21,6 +21,7 @@ use messages::{ }, AriesMessage, }; +use test_utils::mockdata::mock_ledger::MockLedger; use super::{transports::AriesTransport, Agent}; use crate::{aries_agent::utils::oob2did, utils::prelude::*};