From 88f8a5a7d6786b7d2d4c670ce7725b4f5564df84 Mon Sep 17 00:00:00 2001 From: Philipp Date: Tue, 5 Jul 2022 19:08:05 +0300 Subject: [PATCH] Fix brittle agent test (#936) * Fix spurious agent test * Change description to be in line with README --- identity_agent/Cargo.toml | 2 +- identity_agent/src/tests/handler.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/identity_agent/Cargo.toml b/identity_agent/Cargo.toml index 5729cca4f9..435b364295 100644 --- a/identity_agent/Cargo.toml +++ b/identity_agent/Cargo.toml @@ -8,7 +8,7 @@ keywords = ["iota", "tangle", "identity", "p2p", "agent"] license = "Apache-2.0" readme = "./README.md" repository = "https://github.com/iotaledger/identity.rs" -description = "A peer-to-peer communication framework for building digital agents on IOTA Identity" +description = "A peer-to-peer communication framework for building SSI agents on IOTA Identity" [dependencies] async-trait = { version = "0.1", default-features = false } diff --git a/identity_agent/src/tests/handler.rs b/identity_agent/src/tests/handler.rs index 709d753bac..feb76e3a00 100644 --- a/identity_agent/src/tests/handler.rs +++ b/identity_agent/src/tests/handler.rs @@ -180,9 +180,9 @@ async fn test_handlers_can_communicate_bidirectionally() -> AgentResult<()> { .await .unwrap(); - let addr: Multiaddr = agent2.addresses().await.unwrap().into_iter().next().unwrap(); + let addrs: Vec = agent2.addresses().await.unwrap(); - agent1.add_agent_address(agent2.agent_id(), addr).await.unwrap(); + agent1.add_agent_addresses(agent2.agent_id(), addrs).await.unwrap(); agent1.send_request(agent2.agent_id(), Dummy(42)).await.unwrap();