Skip to content

Commit

Permalink
Fix brittle agent test (#936)
Browse files Browse the repository at this point in the history
* Fix spurious agent test

* Change description to be in line with README
  • Loading branch information
PhilippGackstatter authored Jul 5, 2022
1 parent d3920c2 commit 88f8a5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion identity_agent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
4 changes: 2 additions & 2 deletions identity_agent/src/tests/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Multiaddr> = 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();

Expand Down

0 comments on commit 88f8a5a

Please sign in to comment.