Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove tokio, android_logger deps from agency_client #975

Merged
merged 1 commit into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions agency_client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,3 @@ url = { version = "2.3", features = ["serde"] }
uuid = { version = "0.8", default-features = false, features = ["v4"]}
thiserror = "1.0.37"
shared_vcx = { path = "../shared_vcx" }

[target.'cfg(target_os = "android")'.dependencies]
android_logger = "0.5"

[dev-dependencies]
tokio = { version = "1.20", features = [ "rt", "macros" ] }
14 changes: 0 additions & 14 deletions agency_client/src/messages/create_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,20 +86,6 @@ mod tests {
.unwrap();
}

#[tokio::test]
#[cfg(feature = "general_test")]
async fn test_parse_create_keys_v2_response() {
let _setup = SetupMocks::init();

let for_did = "11235yBzrpJQmNyZzgoTqB";
let for_verkey = "EkVTa7SCJ5SntpYyX7CSb2pcBhiVGT9kWSagA8a9T69A";
let client = AgencyClient::new();
let (res_did, res_vk) = client.create_connection_agent(for_did, for_verkey).await.unwrap();

assert_eq!(res_did, "MNepeSWtGfhnv8jLB1sFZC");
assert_eq!(res_vk, "C73MRnns4qUjR5N4LRwTyiXVPKPrA5q4LCT8PZzxVdt9");
}

#[test]
#[cfg(feature = "general_test")]
fn test_create_key_set_invalid_did_errors() {
Expand Down